wcc 2 жил өмнө
parent
commit
2572c2e25c
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      mapping/qyxy2.txt

+ 3 - 1
mapping/qyxy2.txt

@@ -1,4 +1,4 @@
-curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/qyxy_v1 -d '{
+curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127.0.0.1:19805/qyxy_v2 -d '{
 "settings": {
   "index": {
     "analysis": {
@@ -109,6 +109,7 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
         "type": "keyword"
       },
       "company_type_old": {
+        "analyzer": "my_ngram_title",
         "type": "keyword"
       },
       "company_type": {
@@ -151,6 +152,7 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
         "type": "keyword"
       },
       "business_scope": {
+        "analyzer": "my_ngram",
         "type": "keyword"
       },
       "cancel_date": {