ソースを参照

qyxy 添加 芝麻标签

wcc 10 ヶ月 前
コミット
77c10816a6
2 ファイル変更22 行追加5 行削除
  1. 3 3
      mapping/biddingall2.txt
  2. 19 2
      mapping/qyxy2.txt

+ 3 - 3
mapping/biddingall2.txt

@@ -1,4 +1,4 @@
-curl -H 'Content-Type: application/json' -XPUT http://127.0.0.1:9201/biddingall_v2 -d '{
+curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPUT http://127.0.0.1:19905/biddingall_v2 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -45,8 +45,8 @@ curl -H 'Content-Type: application/json' -XPUT http://127.0.0.1:9201/biddingall_
           }
         }
       },
-      "number_of_shards": "1",
-      "number_of_replicas": "0"
+      "number_of_shards": "7",
+      "number_of_replicas": "1"
     }
   },
   "mappings": {  

+ 19 - 2
mapping/qyxy2.txt

@@ -1,4 +1,4 @@
-curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31  -XPUT http://127.0.0.1:19908/qyxy_v1 -d '{
+curl -H 'Content-Type: application/json'   -XPUT http://192.168.3.149:9201/qyxy_v2 -d '{
 "settings": {
   "index": {
     "analysis": {
@@ -55,7 +55,7 @@ curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31  -XPUT http:
         }
       }
     },
-    "number_of_shards": "9",
+    "number_of_shards": "2",
     "number_of_replicas": "0"
   }
 },
@@ -251,6 +251,23 @@ curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31  -XPUT http:
       "nseo_id": {
         "type": "keyword"
       },
+     "zhima_labels": {
+        "type": "nested",
+        "properties": {
+            "zhima_name": {
+                "type": "keyword"
+            },
+            "zhima_definition": {
+                "type": "keyword"
+            }, 
+            "zhima_subtype": {
+                "type": "keyword"
+            },
+            "zhima_toptype": {
+                "type": "keyword"
+            }
+        }
+     },
       "employee_num": {
         "type": "integer"
       }