Przeglądaj źródła

添加 采购单位 画像 索引

wcc 1 rok temu
rodzic
commit
5e07a2b4c3
1 zmienionych plików z 60 dodań i 0 usunięć
  1. 60 0
      mapping/project_portrait.txt

+ 60 - 0
mapping/project_portrait.txt

@@ -0,0 +1,60 @@
+curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31   -XPUT http://127.0.0.1:19908/project_portrait -d  '{
+  "settings": {
+    "index": {
+      "analysis": {
+        "analyzer": {
+          "my_ngram": {
+            "tokenizer": "my_ngram"
+          }
+        },
+        "tokenizer": {
+          "my_ngram": {
+            "min_gram": "2",
+            "type": "nGram",
+            "max_gram": "2"
+          }
+        }
+      },
+      "number_of_shards": "9",
+      "number_of_replicas": "0"
+    }
+  },
+  "mappings": {
+      "dynamic":false,
+      "properties": {
+        "buyer": {
+          "type": "keyword",
+          "fields": {
+            "mbuyer": {
+              "analyzer": "my_ngram",
+              "type": "text"
+            }
+          }
+        },
+        "class": {
+          "type": "keyword"
+        },
+        "id": {
+          "type": "keyword"
+        },
+        "area": {
+          "type": "keyword"
+        },
+        "business_type": {
+          "type": "keyword"
+        },
+        "city": {
+          "type": "keyword"
+        },
+       "lasttime":{
+          "type": "long"
+        },
+       "project_count": {
+          "type": "integer"
+        },
+       "project_money": {
+          "type": "double"
+        }
+      }
+  }
+}'