curl -XPUT http://127.0.0.1:9800/qyxy_v1 -d '{ "settings": { "index": { "search": { "showlog": { "threshold": { "query": { "trace": "100ms" }, "fetch": { "tract": "100ms" } } } }, "analysis": { "analyzer": { "my_ngram": { "filter": [ "lowercase" ], "tokenizer": "my_ngram" } }, "tokenizer": { "my_ngram": { "type": "nGram", "min_gram": "2", "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": { "index": "not_analyzed", "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" } } } } }'