fix #542 : add search analyzer for japanese
This commit is contained in:
parent
941585a0f5
commit
37c254ab86
2 changed files with 16 additions and 1 deletions
|
@ -455,6 +455,20 @@
|
|||
"lowercase"
|
||||
]
|
||||
},
|
||||
"japanese_search_analyzer": {
|
||||
"type": "custom",
|
||||
"char_filter": [
|
||||
"mapping_ja_filter",
|
||||
"kuromoji_neologd_iteration_mark"
|
||||
],
|
||||
"tokenizer": "kuromoji_neologd_tokenizer",
|
||||
"filter": [
|
||||
"truncate10_filter",
|
||||
"kuromoji_neologd_baseform",
|
||||
"kuromoji_neologd_stemmer",
|
||||
"lowercase"
|
||||
]
|
||||
},
|
||||
"english_analyzer": {
|
||||
"type": "custom",
|
||||
"tokenizer": "standard",
|
||||
|
|
|
@ -201,7 +201,8 @@
|
|||
"match": "*_ja",
|
||||
"mapping": {
|
||||
"type": "string",
|
||||
"analyzer": "japanese_analyzer"
|
||||
"analyzer": "japanese_analyzer",
|
||||
"search_analyzer": "japanese_search_analyzer"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue