substring-ish item name indexing using ngrams+keyword
This commit is contained in:
parent
934923b0f6
commit
71d9dc44cd
1 changed files with 24 additions and 0 deletions
|
@ -12,6 +12,28 @@ ANCHORS:
|
|||
number_of_shards: 5
|
||||
number_of_replicas: 1
|
||||
|
||||
analysis:
|
||||
analyzer:
|
||||
item_name_index:
|
||||
type: custom
|
||||
tokenizer: item_name
|
||||
filter:
|
||||
- lowercase
|
||||
- asciifolding
|
||||
|
||||
item_name_search:
|
||||
type: custom
|
||||
tokenizer: keyword
|
||||
filter:
|
||||
- lowercase
|
||||
- asciifolding
|
||||
|
||||
tokenizer:
|
||||
item_name:
|
||||
type: ngram
|
||||
min_gram: 3
|
||||
max_gram: 16
|
||||
|
||||
# add your custom mappings here
|
||||
mappings:
|
||||
item:
|
||||
|
@ -30,6 +52,8 @@ ANCHORS:
|
|||
<%= locale %>:
|
||||
type: string
|
||||
index: analyzed
|
||||
index_analyzer: item_name_index
|
||||
search_analyzer: item_name_search
|
||||
untouched:
|
||||
type: string
|
||||
index: not_analyzed
|
||||
|
|
Loading…
Reference in a new issue