|
@@ -0,0 +1,263 @@
|
|
|
+curl -XPUT http://127.0.0.1:9800/qyxy_v2 -d '{
|
|
|
+ "settings": {
|
|
|
+ "index": {
|
|
|
+ "analysis": {
|
|
|
+ "analyzer": {
|
|
|
+ "my_ngram": {
|
|
|
+ "filter": [
|
|
|
+ "lowercase"
|
|
|
+ ],
|
|
|
+ "tokenizer": "my_ngram"
|
|
|
+ },
|
|
|
+ "douhao": {
|
|
|
+ "type": "pattern",
|
|
|
+ "pattern": ","
|
|
|
+ },
|
|
|
+ "p_ngram": {
|
|
|
+ "filter": [
|
|
|
+ "lowercase"
|
|
|
+ ],
|
|
|
+ "tokenizer": "p_ngram"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tokenizer": {
|
|
|
+ "my_ngram": {
|
|
|
+ "type": "nGram",
|
|
|
+ "min_gram": "2",
|
|
|
+ "max_gram": "2"
|
|
|
+ },
|
|
|
+ "p_ngram": {
|
|
|
+ "token_chars": [
|
|
|
+ "letter",
|
|
|
+ "digit",
|
|
|
+ "symbol"
|
|
|
+ ],
|
|
|
+ "min_gram": "2",
|
|
|
+ "type": "nGram",
|
|
|
+ "max_gram": "2"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "number_of_shards": "8",
|
|
|
+ "number_of_replicas": "0"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "mappings": {
|
|
|
+ "qyxy": {
|
|
|
+ "transform": {
|
|
|
+ "lang": "groovy",
|
|
|
+ "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
|
|
|
+ },
|
|
|
+ "_all": {
|
|
|
+ "enabled": false
|
|
|
+ },
|
|
|
+ "_id": {
|
|
|
+ "path": "_id"
|
|
|
+ },
|
|
|
+ "properties": {
|
|
|
+ "name": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "ent_name": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "ent_ikname": {
|
|
|
+ "analyzer": "ik_smart",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "company_name": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "history_name": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "hname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "company_code": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "credit_no": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "org_code": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "tax_code": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "area_code": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_area": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_city": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_district": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_type_old": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_type": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_type_int": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "legal_person": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "legal_person_certno": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "establish_date": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "lastupdatetime": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "capital": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "currency": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "operation_startdate": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "operation_enddate": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "authority": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "issue_date": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_status": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_address": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "business_scope": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "cancel_date": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "revoke_date": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_phone": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_email": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "stock_name": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "partners": {
|
|
|
+ "properties": {
|
|
|
+ "identify_no": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "stock_type": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "stock_name": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "identify_type": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "stock_capital": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "stock_realcapital": {
|
|
|
+ "type": "double"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "updatetime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "bid_projectname": {
|
|
|
+ "analyzer": "p_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bid_purchasing": {
|
|
|
+ "analyzer": "p_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "search_type": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "employee_name": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bid_area": {
|
|
|
+ "analyzer": "p_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bid_unittype": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bid_contracttype": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "company_shortname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }'
|
|
|
+
|