123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- 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"
- }
- }
- }
- }
- }'
|