Sfoglia il codice sorgente

新增 情报 索引

wcc 1 anno fa
parent
commit
e2a7c3b5dd
2 ha cambiato i file con 151 aggiunte e 1 eliminazioni
  1. 4 1
      mapping/biddingmapping2.txt
  2. 147 0
      mapping/infomation.txt

+ 4 - 1
mapping/biddingmapping2.txt

@@ -121,7 +121,10 @@ curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPUT http:/
                          },   
                         "isfirsthand": {
                           "type": "long"
-                         },  
+                         }, 
+                         "owner_type": {
+                          "type": "integer"
+                          }, 
                         "isfile": {
                           "type": "long"
                          }                                  

+ 147 - 0
mapping/infomation.txt

@@ -0,0 +1,147 @@
+## 情报数据,对应clickhouse
+curl -H 'Content-Type: application/json'   -XPUT http://192.168.3.149:9200/infomation -d  '{
+  "settings": {
+    "index": {
+      "analysis": {
+        "analyzer": {
+          "my_ngram": {
+            "tokenizer": "my_ngram"
+          },
+          "douhao": {
+            "type": "pattern",
+            "pattern": ","
+          }
+        },
+        "tokenizer": {
+          "my_ngram": {
+            "min_gram": "2",
+            "type": "nGram",
+            "max_gram": "2"
+          }
+        }
+      },
+      "number_of_shards": "2",
+      "number_of_replicas": "0"
+    }
+  },
+  "mappings": {
+      "dynamic":false,
+      "properties": {
+     "id": {
+        "type": "keyword"
+      },
+      "title": {
+        "type": "text",
+        "analyzer": "my_ngram"
+      },
+      "summary": {
+        "type": "text",
+        "analyzer": "my_ngram"
+      },
+      "content": {
+        "type": "text",
+        "analyzer": "my_ngram"
+      },
+      "basis": {
+        "type": "text",
+        "analyzer": "my_ngram"
+      },
+      "valuedecrip": {
+        "type": "text",
+        "analyzer": "my_ngram"
+      },
+      "starttime": {
+        "type": "long"
+      },
+      "endtime": {
+        "type": "long"
+      },
+      "data_sourcetype": {
+        "type": "keyword"
+      },
+      "class": {
+        "type": "keyword"
+      },
+      "area": {
+        "type": "keyword"
+      },
+      "city": {
+        "type": "keyword"
+      },
+      "publishtime": {
+        "type": "long"
+      },
+      "createtime": {
+        "type": "long"
+      },
+      "rule_id": {
+        "type": "keyword"
+      },
+      "topclass": {
+        "type": "keyword"
+      },
+      "subclass": {
+        "type": "keyword"
+      },
+      "tag_set": {
+            "properties": {
+                "wuye": {
+                    "properties":{
+                       "scale": {
+                          "type": "long"
+                          },
+                        "period": {
+                          "type": "long"
+                         },
+                        "property_form": {
+                          "type": "text",
+                          "analyzer": "douhao"
+                         },   
+                        "changehand": {
+                          "type": "float"
+                         },  
+                        "changehandindex": {
+                          "type": "long"
+                         },   
+                        "isfirsthand": {
+                          "type": "long"
+                         }, 
+                         "owner_type": {
+                          "type": "integer"
+                          }, 
+                        "isfile": {
+                          "type": "long"
+                         }                                  
+                    }
+                }
+            }
+        },
+      "datajson_expiredate": {
+        "type": "long"
+      },
+      "datajson_toptype": {
+        "type": "keyword"
+      },
+      "datajson_subtype": {
+        "type": "keyword"
+      },
+      "datajson_buyertel": {
+        "type": "keyword"
+      },
+      "datajson_winnertel": {
+        "type": "keyword"
+      },
+      "datajson": {
+        "type": "text",
+        "analyzer": "my_ngram"
+      },
+      "datajson_id": {
+        "type": "keyword"
+      },
+      "business_label": {
+        "type": "keyword"
+      }
+      
+      }
+  }
+}'