|
@@ -0,0 +1,492 @@
|
|
|
+curl -XPUT http://127.0.0.1:9800/bidding_v2 -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"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "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": "13",
|
|
|
+ "number_of_replicas": "1"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "mappings": {
|
|
|
+ "bidding": {
|
|
|
+ "transform": {
|
|
|
+ "lang": "groovy",
|
|
|
+ "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
|
|
|
+ },
|
|
|
+ "_id": {
|
|
|
+ "path": "_id"
|
|
|
+ },
|
|
|
+ "_all": {
|
|
|
+ "enabled": false
|
|
|
+ },
|
|
|
+ "properties": {
|
|
|
+ "buyerzipcode": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "winnertel": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "winnerperson": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "contractcode": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "winneraddr": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "agencyaddr": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "buyeraddr": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "signaturedate": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "projectperiod": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "projectaddr": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "agencytel": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "agencyperson": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "buyerperson": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "agency": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "magency": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "projectscope": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "pscope": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "projectcode": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bidopentime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "supervisorrate": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "buyertel": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bidamount": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "winner": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "buyer": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "mbuyer": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "budget": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "projectname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "pname": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "bidstatus": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "buyerclass": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "topscopeclass": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "s_subscopeclass": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "area": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "city": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "district": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "s_winner": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "mwinner": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "id": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "title": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "string",
|
|
|
+ "fields": {
|
|
|
+ "mtitle": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "detail": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "site": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "comeintime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "href": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "infoformat": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "publishtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "spidercode": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "toptype": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "subtype": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "projectinfo": {
|
|
|
+ "properties": {
|
|
|
+ "approvecode": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "approvecontent": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "approvestatus": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "approvetime": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "approvedept": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "approvenumber": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "projecttype": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "approvecity": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "filetext": {
|
|
|
+ "type": "string",
|
|
|
+ "analyzer": "my_ngram"
|
|
|
+ },
|
|
|
+ "purchasing": {
|
|
|
+ "type": "string",
|
|
|
+ "analyzer": "my_ngram"
|
|
|
+ },
|
|
|
+ "purchasinglist": {
|
|
|
+ "properties": {
|
|
|
+ "itemname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "model": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "unitname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "number": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "brandname": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "unitprice": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "totalprice": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "projectname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "buyer": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "item": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "projectscope": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "expurasingtime": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "reserved_amount": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tagname": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "s_topscopeclass": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "channel": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "winnerorder": {
|
|
|
+ "properties": {
|
|
|
+ "sort": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "sortstr": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "entname": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "project_scale": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "project_duration": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "project_timeunit": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "project_startdate": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "project_completedate": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "payway": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "contract_guarantee": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "bid_guarantee": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "qualifies": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "entidlist": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "funds": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "review_experts": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bidmethod": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bidendtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "bidopenaddress": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "docamount": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "agencyrate": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "agencyfee": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "getdocmethod": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "bidway": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "china_bidding": {
|
|
|
+ "index": "not_analyzed",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "yuceendtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "createtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "purchasing_tag": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "multipackage": {
|
|
|
+ "type": "integer"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}'
|