Fix Lucene indexing for the reviewer suggestion
For Lucene's StringField we have to explicitly convert the value to lower case as otherwise the case insensitive search doesn't work. Change-Id: Ie82c014e0edf5f8049c69ccc62651776a113510a
This commit is contained in:
parent
0406010cd8
commit
649a6d1261
@ -172,7 +172,8 @@ public class ReviewerSuggestionCache {
|
||||
doc.add(new TextField(NAME, a.getFullName(), Store.YES));
|
||||
}
|
||||
if (a.getPreferredEmail() != null) {
|
||||
doc.add(new StringField(EMAIL, a.getPreferredEmail(), Store.YES));
|
||||
doc.add(new StringField(EMAIL, a.getPreferredEmail().toLowerCase(),
|
||||
Store.YES));
|
||||
doc.add(new TextField(EMAIL, a.getPreferredEmail(), Store.YES));
|
||||
}
|
||||
AccountExternalIdAccess extIdAccess = db.get().accountExternalIds();
|
||||
|
Loading…
Reference in New Issue
Block a user