fix order of token filters for autocompletePhoneticAnalyzer
This commit is contained in:
parent
6b2d5e5fab
commit
e2d76c54fe
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue