Bladeren bron

update 法人库

wcc 1 jaar geleden
bovenliggende
commit
5d83622ccb
2 gewijzigde bestanden met toevoegingen van 12 en 10 verwijderingen
  1. 3 4
      mapping/ent_info.txt
  2. 9 6
      mapping/transaction_info.txt

+ 3 - 4
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_v1 -d '{
+curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http://127.0.0.1:19908/ent_info_v2 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -178,10 +178,9 @@ curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http
                 "type": "keyword"
             },
             "company_label": {
-                "analyzer": "douhao",
-                "type": "text",
+                "type": "keyword",
                 "fields": {
-                    "mwinner": {
+                    "labels": {
                         "analyzer": "my_ngram_title",
                         "type": "text"
                     }

+ 9 - 6
mapping/transaction_info.txt

@@ -100,14 +100,17 @@ curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http
                 "type": "keyword"
             },
             "winner": {
-                "type": "text",
-                "fielddata": true,
-                "analyzer": "my_ngram"
+                "type": "keyword",
+                "fields": {
+                    "mwinner": {
+                    "fielddata": true,
+                    "analyzer": "my_ngram",
+                    "type": "text"
+                    }
+                }
             },
             "winner_id": {
-                "type": "text",
-                "fielddata": true,
-                "analyzer": "my_ngram"
+                "type": "keyword"
             },
             "agency": {
                 "type": "keyword",