123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- curl -XPUT http://127.0.0.1:19800/buyer_v2 -d '{
- "settings": {
- "index": {
- "search": {
- "showlog": {
- "threshold": {
- "query": {
- "trace": "100ms"
- },
- "fetch": {
- "tract": "100ms"
- }
- }
- }
- },
- "analysis": {
- "analyzer": {
- "my_ngram": {
- "tokenizer": "my_ngram"
- }
- },
- "tokenizer": {
- "my_ngram": {
- "min_gram": "2",
- "type": "nGram",
- "max_gram": "2"
- }
- }
- },
- "number_of_shards": "20",
- "number_of_replicas": "0"
- }
- },
- "mappings": {
- "buyer": {
- "transform": {
- "lang": "groovy",
- "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
- },
- "_id": {
- "path": "_id"
- },
- "_all": {
- "enabled": false
- },
- "properties": {
- "name": {
- "analyzer": "my_ngram",
- "type": "string"
- },
- "buyer_name": {
- "index": "not_analyzed",
- "type": "string"
- },
- "institute_type": {
- "index": "not_analyzed",
- "type": "string"
- },
- "buyerclass": {
- "index": "not_analyzed",
- "type": "string"
- },
- "fixedphone": {
- "index": "not_analyzed",
- "type": "string"
- },
- "mobilephone": {
- "index": "not_analyzed",
- "type": "string"
- },
- "latestfixedphone": {
- "index": "not_analyzed",
- "type": "string"
- },
- "latestmobilephone": {
- "index": "not_analyzed",
- "type": "string"
- },
- "province": {
- "index": "not_analyzed",
- "type": "string"
- },
- "city": {
- "index": "not_analyzed",
- "type": "string"
- }
- }
- }
- }
- }'
|