Explorar el Código

法人库 索引添加 组织机构标签字段

wcc hace 1 año
padre
commit
d99b72f87a
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. 11 2
      mapping/ent_info.txt

+ 11 - 2
mapping/ent_info.txt

@@ -1,4 +1,4 @@
-curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http://127.0.0.1:19908/ent_info_v2 -d '{
+curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http://127.0.0.1:19908/ent_info_v3 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -58,7 +58,12 @@ curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http
             },
             "company_name": {
                 "type": "text",
-                "analyzer": "my_ngram"
+                "analyzer": "my_ngram",
+                "fields": {
+                    "name": {
+                        "type": "keyword"
+                    }
+                }
             },
             "company_code": {
                 "type": "keyword"
@@ -177,6 +182,10 @@ curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http
             "admin_level": {
                 "type": "keyword"
             },
+           "tag_labels": {
+                "analyzer": "douhao",
+                "type": "text"
+            },
             "company_label": {
                 "type": "keyword",
                 "fields": {