|
@@ -1,134 +1,99 @@
|
|
|
curl -XPUT http://127.0.0.1:19800/oprd_bidding_v1 -d '
|
|
|
{
|
|
|
"settings": {
|
|
|
- "index": {
|
|
|
- "search": {
|
|
|
- "showlog": {
|
|
|
- "threshold": {
|
|
|
- "query": {
|
|
|
- "trace": "100ms"
|
|
|
- },
|
|
|
- "fetch": {
|
|
|
- "tract": "100ms"
|
|
|
- }
|
|
|
- }
|
|
|
+ "analysis": {
|
|
|
+ "analyzer": {
|
|
|
+ "my_ngram_title": {
|
|
|
+ "filter": [
|
|
|
+ "lowercase"
|
|
|
+ ],
|
|
|
+ "tokenizer": "my_ngram_title"
|
|
|
+ },
|
|
|
+ "douhao": {
|
|
|
+ "type": "pattern",
|
|
|
+ "pattern": ","
|
|
|
+ },
|
|
|
+ "my_ngram": {
|
|
|
+ "filter": [
|
|
|
+ "lowercase"
|
|
|
+ ],
|
|
|
+ "tokenizer": "my_ngram"
|
|
|
}
|
|
|
},
|
|
|
- "analysis": {
|
|
|
- "analyzer": {
|
|
|
- "my_ngram_title": {
|
|
|
- "filter": [
|
|
|
- "lowercase"
|
|
|
- ],
|
|
|
- "tokenizer": "my_ngram_title"
|
|
|
- },
|
|
|
- "douhao": {
|
|
|
- "type": "pattern",
|
|
|
- "pattern": ","
|
|
|
- },
|
|
|
- "my_ngram": {
|
|
|
- "filter": [
|
|
|
- "lowercase"
|
|
|
- ],
|
|
|
- "tokenizer": "my_ngram"
|
|
|
- }
|
|
|
- },
|
|
|
- "tokenizer": {
|
|
|
- "my_ngram_title": {
|
|
|
- "token_chars": [
|
|
|
- "letter",
|
|
|
- "digit",
|
|
|
- "punctuation",
|
|
|
- "symbol"
|
|
|
- ],
|
|
|
- "min_gram": "1",
|
|
|
- "type": "nGram",
|
|
|
- "max_gram": "1"
|
|
|
- },
|
|
|
- "my_ngram": {
|
|
|
- "token_chars": [
|
|
|
- "letter",
|
|
|
- "digit",
|
|
|
- "punctuation",
|
|
|
- "symbol"
|
|
|
- ],
|
|
|
- "min_gram": "2",
|
|
|
- "type": "nGram",
|
|
|
- "max_gram": "2"
|
|
|
- }
|
|
|
+ "tokenizer": {
|
|
|
+ "my_ngram_title": {
|
|
|
+ "token_chars": [
|
|
|
+ "letter",
|
|
|
+ "digit",
|
|
|
+ "punctuation",
|
|
|
+ "symbol"
|
|
|
+ ],
|
|
|
+ "min_gram": "1",
|
|
|
+ "type": "nGram",
|
|
|
+ "max_gram": "1"
|
|
|
+ },
|
|
|
+ "my_ngram": {
|
|
|
+ "token_chars": [
|
|
|
+ "letter",
|
|
|
+ "digit",
|
|
|
+ "punctuation",
|
|
|
+ "symbol"
|
|
|
+ ],
|
|
|
+ "min_gram": "2",
|
|
|
+ "type": "nGram",
|
|
|
+ "max_gram": "2"
|
|
|
}
|
|
|
- },
|
|
|
- "number_of_shards": "20",
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "index": {
|
|
|
+ "number_of_shards": "12",
|
|
|
"number_of_replicas": "0"
|
|
|
}
|
|
|
},
|
|
|
"mappings": {
|
|
|
- "bidding": {
|
|
|
- "transform": {
|
|
|
- "lang": "groovy",
|
|
|
- "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
|
|
|
- },
|
|
|
- "_id": {
|
|
|
- "path": "_id"
|
|
|
- },
|
|
|
- "_all": {
|
|
|
- "enabled": false
|
|
|
- },
|
|
|
+ "dynamic": "false",
|
|
|
"properties": {
|
|
|
"buyerzipcode": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"winnertel": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"winnerperson": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"contractcode": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"winneraddr": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"agencyaddr": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"buyeraddr": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"signaturedate": {
|
|
|
"type": "long"
|
|
|
},
|
|
|
"projectperiod": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"projectaddr": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"agencytel": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"agencyperson": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"buyerperson": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
+ "type": "keyword"
|
|
|
},
|
|
|
"agency": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string",
|
|
|
+ "type": "keyword",
|
|
|
"fields": {
|
|
|
"magency": {
|
|
|
"analyzer": "my_ngram",
|
|
@@ -449,7 +414,6 @@ curl -XPUT http://127.0.0.1:19800/oprd_bidding_v1 -d '
|
|
|
"type": "string"
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
'
|