Jianghan 4 rokov pred
rodič
commit
6ec525c5fe
1 zmenil súbory, kde vykonal 156 pridanie a 126 odobranie
  1. 156 126
      mapping/biddingmapping.json

+ 156 - 126
mapping/biddingmapping.json

@@ -1,4 +1,4 @@
-curl -XPUT http://192.168.3.11:9800/bidding_v1 -d '{
+curl -XPUT http://127.0.0.1:9800/bidding_v2 -d '{
   "settings": {
     "index": {
       "analysis": {
@@ -25,7 +25,7 @@ curl -XPUT http://192.168.3.11:9800/bidding_v1 -d '{
             "token_chars": [
               "letter",
               "digit",
-              "punctuation",
+			        "punctuation",
               "symbol"
             ],
             "min_gram": "1",
@@ -36,7 +36,7 @@ curl -XPUT http://192.168.3.11:9800/bidding_v1 -d '{
             "token_chars": [
               "letter",
               "digit",
-              "punctuation",
+			        "punctuation",
               "symbol"
             ],
             "min_gram": "2",
@@ -45,7 +45,7 @@ curl -XPUT http://192.168.3.11:9800/bidding_v1 -d '{
           }
         }
       },
-      "number_of_shards": "2",
+      "number_of_shards": "8",
       "number_of_replicas": "1"
     }
   },
@@ -62,271 +62,301 @@ curl -XPUT http://192.168.3.11:9800/bidding_v1 -d '{
         "enabled": false
       },
       "properties": {
-        "buyerzipcode": {
+		"buyerzipcode": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "winnertel": {
+		"winnertel": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "winnerperson": {
+		"winnerperson": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "contractcode": {
+		"contractcode": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "winneraddr": {
+		"winneraddr": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "agencyaddr": {
+		"agencyaddr": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "buyeraddr": {
+		"buyeraddr": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "signaturedate": {
-          "type": "long"
-        },
-        "projectperiod": {
-          "index": "not_analyzed",
+		"signaturedate": {
+		  "type": "long"
+		},
+		"projectperiod": {
+		  "index": "not_analyzed",
           "type": "string"
-        },
-        "projectaddr": {
-          "index": "not_analyzed",
+		},
+		"projectaddr": {
+		  "index": "not_analyzed",
           "type": "string"
-        },
-        "agencytel": {
+		},
+		"agencytel": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "agencyperson": {
+		"agencyperson": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "buyerperson": {
+		"buyerperson": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "agency": {
+		"agency": {
           "index": "not_analyzed",
-          "type": "string"
+          "type": "string",
+          "fields":{
+            "magency":{
+                "analyzer":"my_ngram",
+                "type":"string"
+            }
+          }
         },
-        "projectscope": {
+		"projectscope": {
           "index": "not_analyzed",
-          "type": "string"
+          "type": "string",
+          "fields":{
+            "pscope":{
+                "analyzer":"my_ngram",
+                "type":"string"
+            }
+          }
         },
-        "projectcode": {
+		"projectcode": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "bidopentime": {
+		"bidopentime": {
           "type": "long"
         },
-        "supervisorrate": {
-          "type": "double"
-        },
-        "buyertel": {
+		"supervisorrate": {
+		  "type": "double"
+		},
+		"buyertel": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "bidamount": {
+		"bidamount": {
           "type": "double"
         },
-        "winner": {
+		"winner": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "buyer": {
+		"buyer": {
           "index": "not_analyzed",
-          "type": "string"
+          "type": "string",
+          "fields":{
+            "mbuyer":{
+                "analyzer":"my_ngram",
+                "type":"string"
+            }
+          }
         },
-        "budget": {
+		"budget": {
           "type": "double"
         },
-        "projectname": {
+		"projectname": {
           "index": "not_analyzed",
-          "type": "string"
-        },
-        "s_projectname": {
-          "type": "string"
+          "type": "string",
+          "fields":{
+            "pname":{
+                "type":"string"
+            }
+          }
         },
-        "bidstatus": {
+		"bidstatus": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "buyerclass": {
+		"buyerclass": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "topscopeclass": {
+		"topscopeclass": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "s_subscopeclass": {
+		"s_subscopeclass": {
           "analyzer": "douhao",
           "type": "string"
         },
-        "area": {
+		"area": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "city": {
+		"city": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "district": {
+		"district": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "s_winner": {
+		"s_winner": {
           "analyzer": "douhao",
-          "type": "string"
+          "type": "string",
+          "fields":{
+            "mwinner":{
+                "analyzer":"my_ngram",
+                "type":"string"
+            }
+          }
         },
-        "id": {
+		"id": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "title": {
+		"title": {
           "analyzer": "my_ngram_title",
           "type": "string"
         },
-        "detail": {
+		"detail": {
           "analyzer": "my_ngram",
           "type": "string"
         },
-        "site": {
+		"site": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "comeintime": {
+		"comeintime": {
           "type": "long"
         },
-        "href": {
+		"href": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "infoformat": {
+		"infoformat": {
           "type": "long"
         },
-        "publishtime": {
+		"publishtime": {
           "type": "long"
         },
-        "s_sha": {
+		"s_sha": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "spidercode": {
+		"spidercode": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "toptype": {
+		"toptype": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "subtype": {
+		"subtype": {
           "index": "not_analyzed",
           "type": "string"
         },
-        "projectinfo": {
+		"projectinfo": {
           "properties": {
             "approvecode": {
-              "index": "not_analyzed",
+				      "index": "not_analyzed",
               "type": "string"
             },
             "approvecontent": {
-              "index": "not_analyzed",
+				      "analyzer": "my_ngram",
               "type": "string"
             },
             "approvestatus": {
-              "index": "not_analyzed",
+				      "index": "not_analyzed",
               "type": "string"
             },
             "approvetime": {
-              "index": "not_analyzed",
+				      "index": "not_analyzed",
               "type": "string"
             },
-            "approvedept": {
-              "index": "not_analyzed",
+			      "approvedept": {
+				      "analyzer": "my_ngram",
               "type": "string"
             },
             "approvenumber": {
-              "index": "not_analyzed",
+				      "index": "not_analyzed",
               "type": "string"
             },
             "projecttype": {
-              "index": "not_analyzed",
+				      "index": "not_analyzed",
               "type": "string"
             },
             "approvecity": {
-              "index": "not_analyzed",
+				      "index": "not_analyzed",
               "type": "string"
             }
           }
         },
-        "attachments": {
+		"attachments": {
+		  "analyzer": "my_ngram",
+		  "type": "string"
+		},
+		"filetext": {
+		  "type":"string",
+		  "analyzer": "my_ngram"
+	    },
+		"purchasing": {
+		  "type":"string",
+		  "analyzer": "my_ngram"
+		},
+		"purchasinglist": {
+		  "properties":{
+        "itemname":{
+          "index": "not_analyzed",
+          "type":"string"
+        },
+        "model":{
           "analyzer": "my_ngram",
-          "type": "string"
+          "type":"string"
         },
-        "filetext": {
-          "type": "string",
-          "analyzer": "my_ngram"
-        },
-        "purchasing": {
-          "type": "string",
-          "analyzer": "douhao"
-        },
-        "purchasinglist": {
-          "properties": {
-            "itemname": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "model": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "unitname": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "number": {
-              "type": "double"
-            }
-          }
-        },
-        "tagname": {
-          "analyzer": "douhao",
-          "type": "string"
+        "unitname":{
+          "index": "not_analyzed",
+          "type":"string"
         },
-        "s_topscopeclass": {
-          "analyzer": "douhao",
-          "type": "string"
+        "number":{
+          "type":"double"
         },
-        "channel": {
-          "index": "not_analyzed",
+        "brandname":{
+          "analyzer": "my_ngram",
           "type": "string"
-        },
-        "winnerorder": {
-          "properties": {
-            "sort": {
-              "type": "integer"
-            },
-            "sortstr": {
-              "index": "not_analyzed",
-              "type": "string"
-            },
-            "entname": {
-              "index": "not_analyzed",
-              "type": "string"
-            }
-          }
         }
+		  }
+		},
+		"tagname":{
+		  "analyzer": "douhao",
+		  "type":"string"
+		},
+		"s_topscopeclass":{
+		  "analyzer": "douhao",
+		  "type":"string"
+		},
+		"channel": {
+          "index": "not_analyzed",
+          "type": "string"
+        },
+		"winnerorder": {
+		  "properties":{
+			"sort":{
+			  "type":"integer"
+			},
+			"sortstr":{
+				"index": "not_analyzed",
+			  "type":"string"
+			},
+			"entname":{
+				"index": "not_analyzed",
+			  "type":"string"
+			}
+		  }
+		}
       }
     }
   }