|
@@ -0,0 +1,423 @@
|
|
|
|
+curl -H 'Content-Type: application/json' -XPUT http://192.168.3.149:9201/projectdetail_v1 -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"
|
|
|
|
+ ],
|
|
|
|
+ "min_gram": "2",
|
|
|
|
+ "type": "nGram",
|
|
|
|
+ "max_gram": "2"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "number_of_shards": "2",
|
|
|
|
+ "number_of_replicas": "0"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "mappings": {
|
|
|
|
+ "dynamic":false,
|
|
|
|
+ "properties": {
|
|
|
|
+ "exception": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "detail": {
|
|
|
|
+ "type": "text",
|
|
|
|
+ "analyzer": "my_ngram"
|
|
|
|
+ },
|
|
|
|
+ "projecthref": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "firsttime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "city": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "projectcode": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "jgtime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "projectscope": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "multipackage": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "subscopeclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "contractcode": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "sortprice": {
|
|
|
|
+ "type": "double"
|
|
|
|
+ },
|
|
|
|
+ "s_projectname": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "sourceinfourl": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "id": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "budget": {
|
|
|
|
+ "type": "double"
|
|
|
|
+ },
|
|
|
|
+ "s_subscopeclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "area": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "budgettag": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "mpc": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "bidamount": {
|
|
|
|
+ "type": "double"
|
|
|
|
+ },
|
|
|
|
+ "createtime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "projectname": {
|
|
|
|
+ "type": "keyword",
|
|
|
|
+ "fields": {
|
|
|
|
+ "pname": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ },
|
|
|
|
+ "sname": {
|
|
|
|
+ "analyzer": "my_ngram_title",
|
|
|
|
+ "type": "text"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "buyertel": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "listtag": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "bidstatus": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "s_winner": {
|
|
|
|
+ "fielddata":true,
|
|
|
|
+ "analyzer": "douhao",
|
|
|
|
+ "type": "text",
|
|
|
|
+ "fields": {
|
|
|
|
+ "mwinner": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "agency": {
|
|
|
|
+ "type": "keyword",
|
|
|
|
+ "fields": {
|
|
|
|
+ "magency": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "buyer": {
|
|
|
|
+ "type": "keyword",
|
|
|
|
+ "fields": {
|
|
|
|
+ "mbuyer": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "bidamounttag": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "jgtime_first": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "mpn": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "package1": {
|
|
|
|
+ "properties": {
|
|
|
|
+ "bidamount": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "winner": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "pici": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "list": {
|
|
|
|
+ "properties": {
|
|
|
|
+ "city": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "projectcode": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "multipackage": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "title": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "subscopeclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "comeintime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "contractcode": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "toptype": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "spidercode": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "subtype": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "infoformat": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "href": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "pjVal": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "budget": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "area": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "bidamount": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "projectname": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "buyertel": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "infoid": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "agency": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "compareStr": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "s_winner": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "resVal": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "buyer": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "buyerclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "site": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "winner": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "winnertel": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "winnerperson": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "bidopentime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "bidendtime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "district": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "publishtime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "topscopeclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "buyerperson": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "project_startdate": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "project_completedate": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "bidtype": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "buyerclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "sourceinfoid": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "lasttime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "winner": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "winnertel": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "winnerperson": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "bidopentime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "bidendtime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "district": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "ids": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "project_rate": {
|
|
|
|
+ "type": "double"
|
|
|
|
+ },
|
|
|
|
+ "topscopeclass": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "buyerperson": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "zbtime": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "purchasing": {
|
|
|
|
+ "type": "text",
|
|
|
|
+ "analyzer": "my_ngram"
|
|
|
|
+ },
|
|
|
|
+ "review_experts": {
|
|
|
|
+ "fielddata":true,
|
|
|
|
+ "analyzer": "douhao",
|
|
|
|
+ "type": "text",
|
|
|
|
+ "fields": {
|
|
|
|
+ "experts": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "winnerorder": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "prate_flag": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "bidcycle": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "project_startdate": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "project_completedate": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "project_scale": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ },
|
|
|
|
+ "project_duration": {
|
|
|
|
+ "type": "long"
|
|
|
|
+ },
|
|
|
|
+ "project_timeunit": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "payway": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "contract_guarantee": {
|
|
|
|
+ "type": "boolean"
|
|
|
|
+ },
|
|
|
|
+ "bid_guarantee": {
|
|
|
|
+ "type": "boolean"
|
|
|
|
+ },
|
|
|
|
+ "qualifies": {
|
|
|
|
+ "analyzer": "my_ngram",
|
|
|
|
+ "type": "text"
|
|
|
|
+ },
|
|
|
|
+ "entidlist": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "first_cooperation": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "subtitle_projectname": {
|
|
|
|
+ "type": "keyword"
|
|
|
|
+ },
|
|
|
|
+ "bid_field": {
|
|
|
|
+ "analyzer": "douhao",
|
|
|
|
+ "type": "text"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}'
|
|
|
|
+
|