diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Elastic/Indexer.pm | 5 | ||||
-rw-r--r-- | Bugzilla/User.pm | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Bugzilla/Elastic/Indexer.pm b/Bugzilla/Elastic/Indexer.pm index 35c9bb119..ab6c5dbfa 100644 --- a/Bugzilla/Elastic/Indexer.pm +++ b/Bugzilla/Elastic/Indexer.pm @@ -45,6 +45,11 @@ sub create_index { }, }, analyzer => { + autocomplete => { + type => 'custom', + tokenizer => 'keyword', + filter => ['lowercase', 'asciifolding_original'], + }, folding => { tokenizer => 'standard', filter => ['standard', 'lowercase', 'asciifolding_original'], diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index e7a5ed481..a3a78395a 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -163,8 +163,7 @@ sub ES_PROPERTIES { }, suggest_nick => { type => 'completion', - analyzer => 'simple', - search_analyzer => 'simple', + analyzer => 'autocomplete', payloads => \1, }, login => { type => 'string' }, |