Эх сурвалжийг харах

更新 review_experts 字段,支持分词

wcc 1 жил өмнө
parent
commit
5b2ea383c3
1 өөрчлөгдсөн 10 нэмэгдсэн , 2 устгасан
  1. 10 2
      mapping/projectset2.txt

+ 10 - 2
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_v3 -d '{
+curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/projectset_v4 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -348,7 +348,15 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
           "analyzer": "my_ngram"
         },
         "review_experts": {
-          "type": "keyword"
+          "fielddata":true,
+          "analyzer": "douhao",
+          "type": "text",
+          "fields": {
+            "experts": {
+              "analyzer": "my_ngram",
+              "type": "text"
+            }
+          }
         },
         "winnerorder": {
           "type": "keyword"