Authored by wangnan9279

try fix "pual frank" problem

... ... @@ -9,6 +9,11 @@ index:
type: nGram
min_gram: 1
max_gram: 3
char_filter:
no_whitespace_filter:
type: pattern_replace
pattern: "\\s"
replacement: ""
filter:
min2_length:
min: 2
... ... @@ -67,5 +72,15 @@ index:
- dynamic_synonym_rewrite
- trim
- unique
no_whitespace_analyzer:
type: custom
tokenizer: keyword
filter:
- lowercase
- trim
- unique
char_filter:
- no_whitespace_filter
index.analysis.analyzer.default.type: keyword
... ...
... ... @@ -258,6 +258,10 @@
"type": "text",
"analyzer": "lowercase_keyword",
"search_analyzer": "lowercase_keyword"
},
"brandName_no_whitespace": {
"type": "text",
"analyzer": "no_whitespace_analyzer"
}
}
},
... ... @@ -313,6 +317,10 @@
"type": "text",
"analyzer": "lowercase_keyword",
"search_analyzer": "lowercase_keyword"
},
"shopName_no_whitespace": {
"type": "text",
"analyzer": "no_whitespace_analyzer"
}
}
},
... ...