|
@@ -0,0 +1,376 @@
|
|
|
+curl -XPUT http://127.0.0.1:9800/projectset_v1 -d '{
|
|
|
+ "settings": {
|
|
|
+ "index": {
|
|
|
+ "analysis": {
|
|
|
+ "analyzer": {
|
|
|
+ "douhao": {
|
|
|
+ "type": "pattern",
|
|
|
+ "pattern": ","
|
|
|
+ },
|
|
|
+ "my_ngram": {
|
|
|
+ "filter": [
|
|
|
+ "lowercase"
|
|
|
+ ],
|
|
|
+ "tokenizer": "my_ngram"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tokenizer": {
|
|
|
+ "my_ngram": {
|
|
|
+ "token_chars": [
|
|
|
+ "letter",
|
|
|
+ "digit"
|
|
|
+ ],
|
|
|
+ "min_gram": "2",
|
|
|
+ "type": "nGram",
|
|
|
+ "max_gram": "2"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "number_of_shards": "2",
|
|
|
+ "number_of_replicas": "1"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "mappings": {
|
|
|
+ "projectset": {
|
|
|
+ "transform": {
|
|
|
+ "lang": "groovy",
|
|
|
+ "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
|
|
|
+ },
|
|
|
+ "_id": {
|
|
|
+ "path": "_id"
|
|
|
+ },
|
|
|
+ "_all": {
|
|
|
+ "enabled": false
|
|
|
+ },
|
|
|
+ "properties":{
|
|
|
+ "exception":{
|
|
|
+ "type":"integer"
|
|
|
+ },
|
|
|
+ "projecthref":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "firsttime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "city":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "projectcode":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "jgtime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "projectscope":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "multipackage":{
|
|
|
+ "type":"integer"
|
|
|
+ },
|
|
|
+ "subscopeclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "contractcode":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "sortprice":{
|
|
|
+ "type":"double"
|
|
|
+ },
|
|
|
+ "s_projectname":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "sourceinfourl":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "id":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "budget":{
|
|
|
+ "type":"double"
|
|
|
+ },
|
|
|
+ "s_subscopeclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "area":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "budgettag":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "mpc":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidamount":{
|
|
|
+ "type":"double"
|
|
|
+ },
|
|
|
+ "createtime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "projectname":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string",
|
|
|
+ "fields":{
|
|
|
+ "pname":{
|
|
|
+ "analyzer":"my_ngram",
|
|
|
+ "type":"string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "buyertel":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "agency":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "listtag":{
|
|
|
+ "type":"integer"
|
|
|
+ },
|
|
|
+ "bidstatus":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "s_winner":{
|
|
|
+ "analyzer":"douhao",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidamounttag":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "mpn":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "package1":{
|
|
|
+ "properties":{
|
|
|
+ "bidamount":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "winner":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "pici":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "list":{
|
|
|
+ "properties":{
|
|
|
+ "city":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "projectcode":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "projectscope":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "multipackage":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "title":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "subscopeclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "comeintime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "contractcode":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "toptype":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "spidercode":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "subtype":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "infoformat":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "href":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "pjVal":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "budget":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "area":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidamount":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "projectname":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "buyertel":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "infoid":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "agency":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "compareStr":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidstatus":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "s_winner":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "resVal":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "buyer":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "buyerclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "site":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "winner":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidopentime":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "district":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "publishtime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "topscopeclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "buyerperson":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "buyer":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidtype":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "buyerclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "sourceinfoid":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "lasttime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "winner":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "bidopentime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "district":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "extractpos":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "ids":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "project_rate":{
|
|
|
+ "type":"double"
|
|
|
+ },
|
|
|
+ "topscopeclass":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "buyerperson":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "zbtime":{
|
|
|
+ "type":"long"
|
|
|
+ },
|
|
|
+ "purchasing": {
|
|
|
+ "type":"string",
|
|
|
+ "analyzer": "my_ngram"
|
|
|
+ },
|
|
|
+ "review_experts":{
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "winnerorder": {
|
|
|
+ "index":"not_analyzed",
|
|
|
+ "type":"string"
|
|
|
+ },
|
|
|
+ "prate_flag": {
|
|
|
+ "type":"integer"
|
|
|
+ },
|
|
|
+ "bidcycle": {
|
|
|
+ "type":"integer"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}'
|