fix #542 : add search analyzer for japanese

This commit is contained in:
Shinsuke Sugaya 2016-06-13 22:34:24 +09:00
parent 941585a0f5
commit 37c254ab86
2 changed files with 16 additions and 1 deletions

View file

@ -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",

View file

@ -201,7 +201,8 @@
"match": "*_ja",
"mapping": {
"type": "string",
"analyzer": "japanese_analyzer"
"analyzer": "japanese_analyzer",
"search_analyzer": "japanese_search_analyzer"
}
}
},