Global Search: searching for an exact phrase containing a white space reveals hits that don't fit the criteria
Summary
Doing a global search on a self-managed instance for a string containing a white space will reveal hits that contain the strings that are separated by white spaces.
For example:
Searching for or the exact phrase POST ERROR
(therefore using "POST ERROR"
in the global search bar) will reveal more hits than there are occurrences of the search string. Something like AhumaPOST ihsdERROR ooma!
would also be returned as a hit, although it clearly doesn't contain the POST ERROR
string.
Steps to reproduce
Searching for "POST ERROR"
(string) will also return a file containing the string AhumaPOST ihsdERROR ooma!
.
Example Project
https://gitlab.com/vstoianovici/reporduce_es_exact_pharese_bug (though this is Gitlab.com)
What is the current bug behavior?
More hits are being surfaced (there are a few that don't actually contain the exact phrase)
What is the expected correct behavior?
Only hits with the exact phrase should be revealed