Jianghan il y a 2 ans
Parent
commit
f07b68ace2

+ 316 - 354
mapping/oprd_bidding.txt

@@ -1,4 +1,4 @@
-curl -XPUT http://127.0.0.1:19800/oprd_bidding_v1 -d '
+curl -XPUT http://192.168.3.241:9205/oprd_bidding_v1 -H 'content-Type:application/json' -d '
 {
   "settings": {
     "analysis": {
@@ -46,374 +46,336 @@ curl -XPUT http://127.0.0.1:19800/oprd_bidding_v1 -d '
       }
     },
     "index": {
-      "number_of_shards": "12",
+      "number_of_shards": "2",
       "number_of_replicas": "0"
     }
   },
   "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"
-        },
-        "agency": {
-          "type": "keyword",
-          "fields": {
-            "magency": {
-              "analyzer": "my_ngram",
-              "type": "string"
-            }
+    "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"
+      },
+      "agency": {
+        "type": "keyword",
+        "fields": {
+          "magency": {
+            "analyzer": "my_ngram",
+            "type": "text"
           }
-        },
-        "projectscope": {
-          "index": "not_analyzed",
-          "type": "string",
-          "fields": {
-            "pscope": {
-              "analyzer": "my_ngram",
-              "type": "string"
-            }
+        }
+      },
+      "projectscope": {
+        "type": "keyword",
+        "fields": {
+          "pscope": {
+            "analyzer": "my_ngram",
+            "type": "text"
           }
-        },
-        "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"
-            }
+        }
+      },
+      "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": {
-          "index": "not_analyzed",
-          "type": "string",
-          "fields": {
-            "pname": {
-              "analyzer": "my_ngram_title",
-              "type": "string"
-            }
+        }
+      },
+      "budget": {
+        "type": "double"
+      },
+      "projectname": {
+        "type": "keyword",
+        "fields": {
+          "pname": {
+            "analyzer": "my_ngram_title",
+            "type": "text"
           }
-        },
-        "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"
-            }
+        }
+      },
+      "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": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "title": {
-          "analyzer": "my_ngram_title",
-          "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"
-            }
+        }
+      },
+      "id": {
+        "type": "keyword"
+      },
+      "title": {
+        "analyzer": "my_ngram_title",
+        "type": "text"
+      },
+      "detail": {
+        "analyzer": "my_ngram",
+        "type": "text"
+      },
+      "site": {
+        "type": "keyword"
+      },
+      "comeintime": {
+        "type": "long"
+      },
+      "href": {
+        "type": "keyword"
+      },
+      "infoformat": {
+        "type": "integer"
+      },
+      "publishtime": {
+        "type": "long"
+      },
+      "spidercode": {
+        "type": "keyword"
+      },
+      "toptype": {
+        "type": "keyword"
+      },
+      "subtype": {
+        "type": "keyword"
+      },
+      "projectinfo": {
+        "properties": {
+          "approvecode": {
+            "type": "keyword"
+          },
+          "approvecontent": {
+            "analyzer": "my_ngram",
+            "type": "text"
+          },
+          "approvestatus": {
+            "type": "keyword"
+          },
+          "approvetime": {
+            "type": "keyword"
+          },
+          "approvedept": {
+            "analyzer": "my_ngram",
+            "type": "text"
+          },
+          "approvenumber": {
+            "type": "keyword"
+          },
+          "projecttype": {
+            "type": "keyword"
+          },
+          "approvecity": {
+            "type": "keyword"
           }
-        },
-        "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"
-            }
+        }
+      },
+      "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"
           }
-        },
-        "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"
-            }
+        }
+      },
+      "tagname": {
+        "analyzer": "douhao",
+        "type": "text"
+      },
+      "s_topscopeclass": {
+        "analyzer": "douhao",
+        "type": "text"
+      },
+      "channel": {
+        "type": "keyword"
+      },
+      "winnerorder": {
+        "properties": {
+          "sort": {
+            "type": "integer"
+          },
+          "sortstr": {
+            "type": "keyword"
+          },
+          "entname": {
+            "type": "keyword"
           }
-        },
-        "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"
-        },
-        "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"
-        },
-        "tag_rule": {
-          "analyzer": "douhao",
-          "type": "string"
-        },
-        "entidlist": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "buyertagname": {
-          "index": "not_analyzed",
-          "type": "string"
         }
+      },
+      "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"
+      },
+      "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"
+      },
+      "tag_rule": {
+        "analyzer": "douhao",
+        "type": "text"
+      },
+      "entidlist": {
+        "type": "keyword"
+      },
+      "buyertagname": {
+        "type": "keyword"
       }
+    }
   }
 }
 '

+ 377 - 449
mapping/oprd_project.txt

@@ -1,470 +1,398 @@
-curl -XPUT http://127.0.0.1:19800/oprd_projectset_v1 -d '{
+curl -XPUT http://127.0.0.1:19805/oprd_projectset_v1 -u es_all:TopJkO2E_d1x -H 'content-Type:application/json' -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": {
-          "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"
-          }
+      "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": "20",
+      }
+    },
+    "index": {
+      "number_of_shards": "12",
       "number_of_replicas": "0"
     }
   },
   "mappings": {
-    "projectset": {
-      "transform": {
-        "lang": "groovy",
-        "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
+    "dynamic": false,
+    "properties": {
+      "exception": {
+        "type": "integer"
       },
-      "_id": {
-        "path": "_id"
+      "projecthref": {
+        "type": "keyword"
       },
-      "_all": {
-        "enabled": false
+      "firsttime": {
+        "type": "long"
       },
-      "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"
-            }
+      "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": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "listtag": {
-          "type": "integer"
-        },
-        "bidstatus": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "s_winner": {
-          "analyzer": "douhao",
-          "type": "string",
-          "fields": {
-            "mwinner": {
-              "analyzer": "my_ngram",
-              "type": "string"
-            }
+        }
+      },
+      "buyertel": {
+        "type": "keyword"
+      },
+      "listtag": {
+        "type": "integer"
+      },
+      "bidstatus": {
+        "type": "keyword"
+      },
+      "s_winner": {
+        "analyzer": "douhao",
+        "type": "text",
+        "fields": {
+          "mwinner": {
+            "analyzer": "my_ngram",
+            "type": "text"
           }
-        },
-        "agency": {
-          "index": "not_analyzed",
-          "type": "string",
-          "fields": {
-            "magency": {
-              "analyzer": "my_ngram",
-              "type": "string"
-            }
+        }
+      },
+      "agency": {
+        "type": "keyword",
+        "fields": {
+          "magency": {
+            "analyzer": "my_ngram",
+            "type": "text"
           }
-        },
-        "buyer": {
-          "index": "not_analyzed",
-          "type": "string",
-          "fields": {
-            "mbuyer": {
-              "analyzer": "my_ngram",
-              "type": "string"
-            }
+        }
+      },
+      "buyer": {
+        "type": "keyword",
+        "fields": {
+          "mbuyer": {
+            "analyzer": "my_ngram",
+            "type": "text"
           }
-        },
-        "bidamounttag": {
-          "type": "long"
-        },
-        "mpn": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "package1": {
-          "properties": {
-            "bidamount": {
-              "type": "long"
-            },
-            "winner": {
-              "index": "not_analyzed",
-              "type": "string"
-            }
+        }
+      },
+      "bidamounttag": {
+        "type": "long"
+      },
+      "mpn": {
+        "type": "keyword"
+      },
+      "package1": {
+        "properties": {
+          "bidamount": {
+            "type": "long"
+          },
+          "winner": {
+            "type": "keyword"
           }
-        },
-        "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"
-            },
-            "winnertel": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "winnerperson": {
-              "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"
-            },
-            "project_startdate": {
-              "type": "long"
-            },
-            "project_completedate": {
-              "type": "long"
-            }
+        }
+      },
+      "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"
+          },
+          "district": {
+            "type": "keyword"
+          },
+          "publishtime": {
+            "type": "long"
+          },
+          "topscopeclass": {
+            "type": "keyword"
+          },
+          "buyerperson": {
+            "type": "keyword"
+          },
+          "project_startdate": {
+            "type": "long"
+          },
+          "project_completedate": {
+            "type": "long"
           }
-        },
-        "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"
-        },
-        "winnertel": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "winnerperson": {
-          "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"
-        },
-        "project_startdate": {
-          "type": "long"
-        },
-        "project_scale": {
-          "analyzer": "my_ngram",
-          "type": "string"
-        },
-        "project_duration": {
-          "type": "long"
-        },
-        "project_timeunit": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "payway": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "contract_guarantee": {
-          "type": "boolean"
-        },
-        "bid_guarantee": {
-          "type": "boolean"
-        },
-        "qualifies": {
-          "analyzer": "my_ngram",
-          "type": "string"
-        },
-        "tag_rule": {
-          "analyzer": "douhao",
-          "type": "string"
-        },
-        "isOperators": {
-          "type": "boolean"
-        },
-        "entidlist": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "buyertagname": {
-          "index": "not_analyzed",
-          "type": "string"
         }
+      },
+      "bidtype": {
+        "type": "keyword"
+      },
+      "buyerclass": {
+        "type": "keyword"
+      },
+      "sourceinfoid": {
+        "type": "keyword"
+      },
+      "lasttime": {
+        "type": "long"
+      },
+      "winner": {
+        "type": "keyword"
+      },
+      "winnertel": {
+        "type": "keyword"
+      },
+      "winnerperson": {
+        "type": "keyword"
+      },
+      "bidopentime": {
+        "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": {
+        "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"
+      },
+      "bid_field": {
+        "analyzer": "douhao",
+        "type": "text"
+      },
+      "buyertagname": {
+        "type": "keyword"
       }
     }
   }

+ 184 - 227
mapping/oprd_qyxy.txt

@@ -1,242 +1,199 @@
-curl -XPUT http://127.0.0.1:19800/oprd_qyxy_v1 -d '{
+curl -XPUT http://127.0.0.1:19805/oprd_qyxy_v1 -u es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d '{
   "settings": {
-    "index": {
-      "analysis": {
-        "analyzer": {
-          "my_ngram": {
-            "filter": [
-              "lowercase"
-            ],
-            "tokenizer": "my_ngram"
-          },
-          "douhao": {
-            "type": "pattern",
-            "pattern": ","
-          },
-          "p_ngram": {
-            "filter": [
-              "lowercase"
-            ],
-            "tokenizer": "p_ngram"
-          }
-        },
-        "tokenizer": {
-          "my_ngram": {
-            "type": "nGram",
-            "min_gram": "2",
-            "max_gram": "2"
-          },
-          "p_ngram": {
-            "token_chars": [
-              "letter",
-              "digit",
-              "symbol"
-            ],
-            "min_gram": "2",
-            "type": "nGram",
-            "max_gram": "2"
-          }
+    "analysis": {
+      "analyzer": {
+        "my_ngram": {
+          "filter": [
+            "lowercase"
+          ],
+          "tokenizer": "my_ngram"
+        },
+        "douhao": {
+          "type": "pattern",
+          "pattern": ","
+        },
+        "p_ngram": {
+          "filter": [
+            "lowercase"
+          ],
+          "tokenizer": "p_ngram"
         }
       },
-      "number_of_shards": "20",
+      "tokenizer": {
+        "my_ngram": {
+          "type": "nGram",
+          "min_gram": "2",
+          "max_gram": "2"
+        },
+        "p_ngram": {
+          "token_chars": [
+            "letter",
+            "digit",
+            "symbol"
+          ],
+          "min_gram": "2",
+          "type": "nGram",
+          "max_gram": "2"
+        }
+      }
+    },
+    "index": {
+      "number_of_shards": "12",
       "number_of_replicas": "0"
     }
   },
   "mappings": {
-    "qyxy": {
-      "transform": {
-        "lang": "groovy",
-        "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
-      },
-      "_all": {
-        "enabled": false
-      },
-      "_id": {
-        "path": "_id"
-      },
-      "properties": {
-        "name": {
-          "analyzer": "my_ngram",
-          "type": "string",
-          "fields": {
-            "ent_name": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "ent_ikname": {
-              "analyzer": "ik_smart",
-              "type": "string"
-            }
+    "dynamic": false,
+    "properties": {
+      "name": {
+        "analyzer": "my_ngram",
+        "type": "text",
+        "fields": {
+          "ent_name": {
+            "type": "keyword"
+          },
+          "ent_ikname": {
+            "analyzer": "ik_smart",
+            "type": "text"
           }
-        },
-        "company_name": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "history_name": {
-          "analyzer": "my_ngram",
-          "type": "string",
-          "fields": {
-            "hname": {
-              "index": "not_analyzed",
-              "type": "string"
-            }
+        }
+      },
+      "company_name": {
+        "type": "keyword"
+      },
+      "history_name": {
+        "analyzer": "my_ngram",
+        "type": "text",
+        "fields": {
+          "hname": {
+            "type": "keyword"
           }
-        },
-        "company_code": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "tax_code": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "credit_no": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "org_code": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_area": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_city": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_district": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_type_old": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_type": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_type_int": {
-          "type": "integer"
-        },
-        "legal_person": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "establish_date": {
-          "type": "long"
-        },
-        "lastupdatetime": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "capital": {
-          "type": "double"
-        },
-        "currency": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "operation_startdate": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "operation_enddate": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "authority": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "issue_date": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_status": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_address": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "business_scope": {
-          "analyzer": "my_ngram",
-          "type": "string"
-        },
-        "cancel_date": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "revoke_date": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_phone": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "company_email": {
-          "index": "not_analyzed",
-          "type": "string"
-        },
-        "stock_name": {
-          "analyzer": "douhao",
-          "type": "string"
-        },
-        "partners": {
-          "properties": {
-            "identify_no": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "stock_type": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "stock_name": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "identify_type": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "stock_capital": {
-              "type": "double"
-            },
-            "stock_realcapital": {
-              "type": "double"
-            }
+        }
+      },
+      "company_code": {
+        "type": "keyword"
+      },
+      "tax_code": {
+        "type": "keyword"
+      },
+      "credit_no": {
+        "type": "keyword"
+      },
+      "org_code": {
+        "type": "keyword"
+      },
+      "company_area": {
+        "type": "keyword"
+      },
+      "company_city": {
+        "type": "keyword"
+      },
+      "company_district": {
+        "type": "keyword"
+      },
+      "company_type_old": {
+        "type": "keyword"
+      },
+      "company_type": {
+        "type": "keyword"
+      },
+      "company_type_int": {
+        "type": "integer"
+      },
+      "legal_person": {
+        "type": "keyword"
+      },
+      "establish_date": {
+        "type": "long"
+      },
+      "lastupdatetime": {
+        "type": "keyword"
+      },
+      "capital": {
+        "type": "double"
+      },
+      "currency": {
+        "type": "keyword"
+      },
+      "operation_startdate": {
+        "type": "keyword"
+      },
+      "operation_enddate": {
+        "type": "keyword"
+      },
+      "authority": {
+        "type": "keyword"
+      },
+      "issue_date": {
+        "type": "keyword"
+      },
+      "company_status": {
+        "type": "keyword"
+      },
+      "company_address": {
+        "type": "keyword"
+      },
+      "business_scope": {
+        "analyzer": "my_ngram",
+        "type": "text"
+      },
+      "cancel_date": {
+        "type": "keyword"
+      },
+      "revoke_date": {
+        "type": "keyword"
+      },
+      "company_phone": {
+        "type": "keyword"
+      },
+      "company_email": {
+        "type": "keyword"
+      },
+      "stock_name": {
+        "analyzer": "douhao",
+        "type": "text"
+      },
+      "partners": {
+        "properties": {
+          "identify_no": {
+            "type": "keyword"
+          },
+          "stock_type": {
+            "type": "keyword"
+          },
+          "stock_name": {
+            "type": "keyword"
+          },
+          "identify_type": {
+            "type": "keyword"
+          },
+          "stock_capital": {
+            "type": "double"
+          },
+          "stock_realcapital": {
+            "type": "double"
           }
-        },
-        "updatetime": {
-          "type": "long"
-        },
-        "employees": {
-          "properties": {
-            "employee_name": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "position": {
-              "index": "not_analyzed",
-              "type": "string"
-            }
+        }
+      },
+      "updatetime": {
+        "type": "long"
+      },
+      "employees": {
+        "properties": {
+          "employee_name": {
+            "type": "keyword"
+          },
+          "position": {
+            "type": "keyword"
           }
-        },
-        "employee_name": {
-          "analyzer": "douhao",
-          "type": "string"
-        },
-        "company_shortname": {
-          "index": "not_analyzed",
-          "type": "string"
         }
+      },
+      "employee_name": {
+        "analyzer": "douhao",
+        "type": "text"
+      },
+      "company_shortname": {
+        "type": "keyword"
       }
     }
   }

+ 43 - 43
mapping/project-forecast2.txt

@@ -1,49 +1,49 @@
-curl -H 'Content-Type: application/json' -XPUT http://192.168.3.149:9200/forecast_v2 -d '{
+curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/forecast_v2 -d '{
   "settings": {
-    "index": {
-      "analysis": {
-        "analyzer": {
-          "douhao": {
-            "type": "pattern",
-            "pattern": ","
-          },
-          "my_ngram_title": {
-            "filter": [
-              "lowercase"
-            ],
-            "tokenizer": "my_ngram_title"
-          },
-          "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"
-          }
+    "analysis": {
+      "analyzer": {
+        "douhao": {
+          "type": "pattern",
+          "pattern": ","
+        },
+        "my_ngram_title": {
+          "filter": [
+            "lowercase"
+          ],
+          "tokenizer": "my_ngram_title"
+        },
+        "my_ngram": {
+          "filter": [
+            "lowercase"
+          ],
+          "tokenizer": "my_ngram"
         }
       },
-      "number_of_shards": "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"
+          ],
+          "min_gram": "2",
+          "type": "nGram",
+          "max_gram": "2"
+        }
+      }
+    },
+    "index": {
+      "number_of_shards": "12",
       "number_of_replicas": "0"
     }
   },

+ 7 - 1
mapping/projectset2.txt

@@ -1,4 +1,4 @@
-curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/projectset_v1 -d '{
+curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/projectset_v2 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -274,6 +274,9 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
             "bidopentime": {
               "type": "long"
             },
+            "bidendtime": {
+              "type": "long"
+            },
             "district": {
               "type": "keyword"
             },
@@ -318,6 +321,9 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
         "bidopentime": {
           "type": "long"
         },
+        "bidendtime": {
+          "type": "long"
+        },
         "district": {
           "type": "keyword"
         },

+ 63 - 25
mapping/tool.txt

@@ -1,40 +1,72 @@
 // 新增某字段mapping
-curl -XPUT http://127.0.0.1:19800/bidding_v2/bidding/_mapping -d '
+curl -XPUT http://127.0.0.1:19805/projectset/_mapping -u es_all:TopJkO2E_d1x -H 'Content-Type: application/json' -d '
 {
   "properties": {
-    "bidstarttime": {
+    "bidendtime": {
       "type": "long"
     },
-    "docendtime": {
-      "type": "long"
-    },
-    "docstarttime": {
-      "type": "long"
-    },
-    "signendtime": {
+    "list": {
+      "properties": {
+        "bidendtime": {
+          "type": "long"
+        }
+      }
+    }
+	}
+}'
+
+//新增某字段mapping,es7 版本
+curl -XPUT "http://192.168.3.149:9200/bidding_v2/_mapping" -H 'Content-Type: application/json' -d '
+{
+  "properties": {
+    "dataweight": {
       "type": "long"
+    }
+  }
+}'
+
+curl -XPUT "http://127.0.0.1:19805/projectset/_mapping?pretty" -u es_all:TopJkO2E_d1x -H 'Content-Type: application/json' -d '
+{
+  "properties": {
+    "review_experts": {
+      "type": "text",
+      "fielddata": true
     },
-    "signstarttime": {
-      "type": "long"
+    "s_winner": {
+      "type": "text",
+      "fielddata": true,
+      "fields": {
+        "mwinner": {
+          "type": "text",
+          "analyzer": "my_ngram"
+        }
+      },
+      "analyzer": "douhao"
     }
-	}
+  }
+}'
+
+// 默认查询数量
+curl -XPUT "http://127.0.0.1:19805/bidding/_settings" -u es_all:TopJkO2E_d1x -H 'Content-Type: application/json' -d '
+{
+  "index.max_result_window": "20000"
 }'
 
 //开启节点平衡
-curl -XPUT http://127.0.0.1:19805/_cluster/settings --user es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d'{
+curl -XPUT http://127.0.0.1:19805/bidding/_settings -u es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d'{
   "transient" : {
     "cluster.routing.allocation.enable" : "all"
   }
 }'
 
 //关闭节点平衡
-curl -XPUT http://127.0.0.1:19800/_cluster/settings --user es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d'{
+curl -XPUT http://127.0.0.1:19805/_cluster/settings --user es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d'{
   "transient" : {
     "cluster.routing.allocation.enable" : "none"
   }
 }'
 //开启节点平衡
-curl -XPUT http://192.168.3.206:9800/_cluster/settings -d'{
+curl -XPUT http://127.0.0.1:19805/_cluster/settings --user es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d'{
   "transient" : {
     "cluster.routing.allocation.enable" : "all"
   }
@@ -99,16 +131,7 @@ curl -XPUT http://127.0.0.1:9800/bidding_v1/bidding/_mapping -d '
     }
 	}
 }'
-//新增某字段mapping,es7 版本
-curl -XPUT "http://192.168.3.149:9200/bidding_v2/_mapping" -H 'Content-Type: application/json' -d'
-{
-  "properties": {
-    "dataweight": {
-      "type": "long"
-    }
-  }
-}
-'
+
 curl -XPUT http://127.0.0.1:9800/bidding_v1/bidding/_mapping -d '
 {
 	"properties": {
@@ -465,3 +488,18 @@ curl -XPOST "http://192.168.3.128:9800/bidding/bidding/_mapping?pretty" -d '
   }
 }'
 
+命令:
+curl -XPUT 'http://127.0.0.1:9902/_cluster/settings' -u elastic:MsOCrY7Yct3sjVvB5gCd  -H 'Content-Type: application/json' -d '{
+    "persistent": {
+       "ingest.geoip.downloader.enabled": false
+    }
+}'
+
+
+
+https://discuss.elastic.co/t/unable-to-start-elasticsearch-after-upgrade-7-17-8-2-timeout-was-exceeded/310960/2
+
+
+错误:
+[2023-05-17T16:41:14,077][ERROR][o.e.i.g.DatabaseNodeService] [es_1] failed to retrieve database [GeoLite2-Country.mmdb]
+org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];

+ 7 - 3
mapping/更换索引库索引名称.txt

@@ -40,12 +40,16 @@ curl -XPOST http://127.0.0.1:19800/_aliases  -d '
     ]
 }'
 
-curl -XPOST http://127.0.0.1:19805/_aliases --user es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d '
+curl -XPOST http://127.0.0.1:19805/_aliases -u es_all:TopJkO2E_d1x -H 'content-Type:application/json' -d '
 {
     "actions": [
+        { "remove": {
+            "alias": "forecast",
+            "index": "forecast_v1"
+        }},
         { "add": {
-            "alias": "proposed",
-            "index": "proposed_v1"
+            "alias": "forecast",
+            "index": "forecast_v2"
         }}
     ]
 }'