Jianghan 5 月之前
父节点
当前提交
0463b44564
共有 4 个文件被更改,包括 99 次插入17 次删除
  1. 10 1
      mapping/bidding_customer.txt
  2. 72 0
      mapping/cule_info.txt
  3. 13 15
      mapping/tool.txt
  4. 4 1
      mapping/transaction_info.txt

+ 10 - 1
mapping/bidding_customer.txt

@@ -1,4 +1,4 @@
-curl -XPUT http://192.168.3.241:9205/bidding_customer_v1 -H 'Content-Type: application/json' -d '{
+curl -XPUT http://192.168.3.241:9205/bidding_customer_v2 -H 'Content-Type: application/json' -d '{
     "settings": {
         "index": {
             "analysis": {
@@ -131,6 +131,15 @@ curl -XPUT http://192.168.3.241:9205/bidding_customer_v1 -H 'Content-Type: appli
             },
             "pici": {
                 "type": "long"
+            },
+            "expurasingtime": {
+                "type": "long" 
+            },
+            "bidopentime": {
+                "type": "long"
+            },
+            "businesstype": {
+                "type": "keyword"
             }
         }
     }

+ 72 - 0
mapping/cule_info.txt

@@ -0,0 +1,72 @@
+curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPUT http://127.0.0.1:19908/clue_info_v1 -d '{
+  "settings": {
+    "index": {
+      "analysis": {
+        "analyzer": {
+          "my_ngram_title": {
+            "filter": [
+              "lowercase"
+            ],
+            "tokenizer": "my_ngram_title"
+          }
+        },
+        "tokenizer": {
+          "my_ngram_title": {
+            "token_chars": [
+              "letter",
+              "digit",
+              "punctuation",
+              "symbol"
+            ],
+            "min_gram": "1",
+            "type": "nGram",
+            "max_gram": "1"
+          }
+        }
+      },
+      "number_of_shards": "9",
+      "number_of_replicas": "0"
+    }
+  },
+  "mappings": {  
+      "dynamic":false,
+      "properties": {
+        "id": {
+          "type": "keyword"
+        },
+        "cluename": {
+          "analyzer": "my_ngram_title",
+          "type": "text",
+          "fields": {
+            "cname": {
+              "type": "keyword"
+            }
+          }
+        },
+        "uid": {
+          "type": "keyword"
+        },
+        "userid": {
+          "type": "keyword"
+        },
+        "position_id": {
+          "type": "keyword"
+        },
+       "seatNumber": {
+          "type": "keyword"
+        },
+        "is_assign": {
+          "type": "integer"
+        },
+        "comeintime": {
+          "type": "long"
+        },
+        "createtime": {
+          "type": "long"
+        },
+        "updatetime": {
+          "type": "long"
+        }
+      }
+    }
+}'

+ 13 - 15
mapping/tool.txt

@@ -1,26 +1,24 @@
 // 新增某字段mapping
-curl -XPUT http://127.0.0.1:19805/forecast_v1/_mapping -u jianyuGr:we3g8glKfe# -H 'Content-Type: application/json' -d '
+curl -XPUT http://127.0.0.1:19905/bidding_customer_v1/_mapping -u jybid:Top2023_JEB01i@31 -H 'Content-Type: application/json' -d '
 {
   "properties": {
-    "budget": {
-      "type": "double"
-    },
-    "bidamount": {
-      "type": "double"
-    },
-    "sortprice": {
-      "type": "double"
-    }
+      "businesstype": {
+        "type": "keyword"
+      }
 	}
 }'
 
 // 索引添加别名
-curl  -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPOST http://127.0.0.1:19905/_aliases -d '
+curl  -H 'Content-Type: application/json' -XPOST http://192.168.3.241:9205/_aliases -d '
 {
     "actions": [
+        { "remove": {
+            "alias": "bidding_customer",
+            "index": "bidding_customer_v1"
+        }},
         { "add": {
-            "alias": "bidding_pre",
-            "index": "bidding_20231120"
+            "alias": "bidding_customer",
+            "index": "bidding_customer_v2"
         }}
     ]
 }'
@@ -87,7 +85,7 @@ curl -XPUT "http://127.0.0.1:19805/bidding/_settings" -u es_all:TopJkO2E_d1x -H
 }'
 
 //开启节点平衡
-curl -XPUT http://127.0.0.1:19805/_cluster/settings -u ianyu:KHiwdi490Sss# -H 'content-Type:application/json' -d'{
+curl -XPUT http://127.0.0.1:19908/_cluster/settings -u jybid:Top2023_JEB01i@31 -H 'content-Type:application/json' -d'{
   "transient" : {
     "cluster.routing.allocation.enable" : "none"
   }
@@ -96,7 +94,7 @@ curl -XPUT http://127.0.0.1:19805/_cluster/settings -u ianyu:KHiwdi490Sss# -H 'c
 //关闭节点平衡
 curl -XPUT http://127.0.0.1:19905/_cluster/settings -u jybid:Top2023_JEB01i@31 -H 'content-Type:application/json' -d'{
   "transient" : {
-    "cluster.routing.allocation.enable" : "all"
+    "cluster.routing.allocation.enable" : "none"
   }
 }'
 //开启节点平衡

+ 4 - 1
mapping/transaction_info.txt

@@ -1,5 +1,5 @@
 ##  人脉通 transaction_info-交易信息表
-curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http://127.0.0.1:19908/transaction_info_v2 -d '{
+curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http://127.0.0.1:19908/transaction_info_v3 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -145,6 +145,9 @@ curl -H 'Content-Type: application/json'  -u jybid:Top2023_JEB01i@31  -XPUT http
             "city": {
                 "type": "keyword"
             },
+            "topscopeclass": {
+                "type": "keyword"
+            },
             "district": {
                 "type": "keyword"
             },