소스 검색

bidding "procurementlist" 新增字段 remark

wcc 2 년 전
부모
커밋
27f360dc10
3개의 변경된 파일13개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 1
      mapping/biddingmapping2.txt
  2. 1 1
      mapping/buyer2.txt
  3. 7 3
      mapping/tool.txt

+ 5 - 1
mapping/biddingmapping2.txt

@@ -46,7 +46,8 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
         }
       },
       "number_of_shards": "24",
-      "number_of_replicas": "1"
+      "number_of_replicas": "1",
+      "max_result_window": "20000"
     }
   },
   "mappings": {
@@ -301,6 +302,9 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
             },
             "totalprice": {
               "type": "double"
+            },
+             "remark": {
+              "type": "keyword"
             },
             "expurasingtime": {
               "type": "long"

+ 1 - 1
mapping/buyer2.txt

@@ -15,7 +15,7 @@ curl -H 'Content-Type: application/json' -u es_all:TopJkO2E_d1x -XPUT http://127
           }
         }
       },
-      "number_of_shards": "12",
+      "number_of_shards": "18",
       "number_of_replicas": "0"
     }
   },

+ 7 - 3
mapping/tool.txt

@@ -16,11 +16,15 @@ curl -XPUT http://127.0.0.1:19805/projectset/_mapping -u es_all:TopJkO2E_d1x -H
 }'
 
 //新增某字段mapping,es7 版本
-curl -XPUT "http://192.168.3.149:9200/bidding_v2/_mapping" -H 'Content-Type: application/json' -d '
+curl -XPUT "http://127.0.0.1:19805/bidding_v1/_mapping"  -u es_all:TopJkO2E_d1x -H 'Content-Type: application/json' -d '
 {
   "properties": {
-    "dataweight": {
-      "type": "long"
+    "procurementlist": {
+       "properties": {
+          "remark": {
+              "type": "keyword"
+          }
+       }
     }
   }
 }'