Authored by wangnan9279

try fix "pual frank" problem

@@ -9,6 +9,11 @@ index: @@ -9,6 +9,11 @@ index:
9 type: nGram 9 type: nGram
10 min_gram: 1 10 min_gram: 1
11 max_gram: 3 11 max_gram: 3
  12 + char_filter:
  13 + no_whitespace_filter:
  14 + type: pattern_replace
  15 + pattern: "\\s"
  16 + replacement: ""
12 filter: 17 filter:
13 min2_length: 18 min2_length:
14 min: 2 19 min: 2
@@ -66,6 +71,16 @@ index: @@ -66,6 +71,16 @@ index:
66 - lowercase 71 - lowercase
67 - dynamic_synonym_rewrite 72 - dynamic_synonym_rewrite
68 - trim 73 - trim
69 - - unique 74 + - unique
  75 + no_whitespace_analyzer:
  76 + type: custom
  77 + tokenizer: keyword
  78 + filter:
  79 + - lowercase
  80 + - trim
  81 + - unique
  82 + char_filter:
  83 + - no_whitespace_filter
  84 +
70 85
71 index.analysis.analyzer.default.type: keyword 86 index.analysis.analyzer.default.type: keyword
@@ -258,6 +258,10 @@ @@ -258,6 +258,10 @@
258 "type": "text", 258 "type": "text",
259 "analyzer": "lowercase_keyword", 259 "analyzer": "lowercase_keyword",
260 "search_analyzer": "lowercase_keyword" 260 "search_analyzer": "lowercase_keyword"
  261 + },
  262 + "brandName_no_whitespace": {
  263 + "type": "text",
  264 + "analyzer": "no_whitespace_analyzer"
261 } 265 }
262 } 266 }
263 }, 267 },
@@ -313,6 +317,10 @@ @@ -313,6 +317,10 @@
313 "type": "text", 317 "type": "text",
314 "analyzer": "lowercase_keyword", 318 "analyzer": "lowercase_keyword",
315 "search_analyzer": "lowercase_keyword" 319 "search_analyzer": "lowercase_keyword"
  320 + },
  321 + "shopName_no_whitespace": {
  322 + "type": "text",
  323 + "analyzer": "no_whitespace_analyzer"
316 } 324 }
317 } 325 }
318 }, 326 },