fix order of token filters for autocompletePhoneticAnalyzer

This commit is contained in:
Jiajing LIANG 2017-12-13 12:44:28 +01:00
parent 6b2d5e5fab
commit e2d76c54fe
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ public class ElasticsearchMappingProvider implements ElasticsearchAnalysisDefini
builder.analyzer("autocompletePhoneticAnalyzer")
.withTokenizer("standard")
.withTokenFilters("standard", "stop", "phonetic_doublemetaphone", "snowball_english");
.withTokenFilters("standard", "stop", "snowball_english", "phonetic_doublemetaphone");
builder.tokenFilter("phonetic_doublemetaphone")
.type("phonetic")
.param("encoder", "double_metaphone");