|
@@ -0,0 +1,434 @@
|
|
|
+curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/bidding_v2 -d '{
|
|
|
+ "settings": {
|
|
|
+ "index": {
|
|
|
+ "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": "12",
|
|
|
+ "number_of_replicas": "1"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "mappings": {
|
|
|
+
|
|
|
+ "dynamic":false,
|
|
|
+ "properties": {
|
|
|
+ "buyerzipcode": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "winnertel": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "winnerperson": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "contractcode": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "winneraddr": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "agencyaddr": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "buyeraddr": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "signaturedate": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "projectperiod": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "projectaddr": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "agencytel": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "agencyperson": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "buyerperson": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "isValidFile": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "dataweight": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "agency": {
|
|
|
+ "type": "keyword",
|
|
|
+ "fields": {
|
|
|
+ "magency": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "projectscope": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "projectcode": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "bidopentime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "supervisorrate": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "buyertel": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "bidamount": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "winner": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "buyer": {
|
|
|
+ "type": "keyword",
|
|
|
+ "fields": {
|
|
|
+ "mbuyer": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "budget": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "projectname": {
|
|
|
+ "type": "keyword",
|
|
|
+ "fields": {
|
|
|
+ "pname": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "bidstatus": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "buyerclass": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "topscopeclass": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "s_subscopeclass": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "area": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "city": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "district": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "s_winner": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "text",
|
|
|
+ "fields": {
|
|
|
+ "mwinner": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "id": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "title": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text",
|
|
|
+ "fields": {
|
|
|
+ "mtitle": {
|
|
|
+ "type": "keyword"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "detail": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "site": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "comeintime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "href": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "infoformat": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "publishtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "spidercode": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "toptype": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "subtype": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "filetext": {
|
|
|
+ "type": "text",
|
|
|
+ "analyzer": "my_ngram"
|
|
|
+ },
|
|
|
+ "purchasing": {
|
|
|
+ "type": "text",
|
|
|
+ "analyzer": "my_ngram"
|
|
|
+ },
|
|
|
+ "purchasinglist": {
|
|
|
+ "properties": {
|
|
|
+ "itemname": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "model": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "unitname": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "number": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "brandname": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "unitprice": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "totalprice": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "item": {
|
|
|
+ "type": "keyword"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "procurementlist": {
|
|
|
+ "properties": {
|
|
|
+ "projectname": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "buyer": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "item": {
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "projectscope": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "totalprice": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "expurasingtime": {
|
|
|
+ "type": "long"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tagname": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "s_topscopeclass": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "channel": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "winnerorder": {
|
|
|
+ "properties": {
|
|
|
+ "sort": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "sortstr": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "entname": {
|
|
|
+ "type": "keyword"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "project_scale": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "project_duration": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "project_timeunit": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "project_startdate": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "project_completedate": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "payway": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "contract_guarantee": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "bid_guarantee": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "qualifies": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "entidlist": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "funds": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "review_experts": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "bidmethod": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "bidendtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "bidopenaddress": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "docamount": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "agencyrate": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "agencyfee": {
|
|
|
+ "type": "double"
|
|
|
+ },
|
|
|
+ "getdocmethod": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "bidway": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "china_bidding": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "yuceendtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "createtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "purchasing_tag": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "multipackage": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "bid_field": {
|
|
|
+ "analyzer": "douhao",
|
|
|
+ "type": "text"
|
|
|
+ },
|
|
|
+ "bidstarttime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "docendtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "docstarttime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "signendtime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "signstarttime": {
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "issue_quota":{
|
|
|
+ "type":"double"
|
|
|
+ },
|
|
|
+ "bidopen_shape":{
|
|
|
+ "type":"keyword"
|
|
|
+ },
|
|
|
+ "quote_mode":{
|
|
|
+ "type":"keyword"
|
|
|
+ },
|
|
|
+ "is_acquire_tender":{
|
|
|
+ "type":"boolean"
|
|
|
+ },
|
|
|
+ "is_payment_deposit":{
|
|
|
+ "type":"boolean"
|
|
|
+ },
|
|
|
+ "is_joint_bidding":{
|
|
|
+ "type":"boolean"
|
|
|
+ },
|
|
|
+ "object_type":{
|
|
|
+ "type":"keyword"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}'
|