Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Double-quoted Simple Search term (5.2.1) returns all searchable entries #161
Description of the problem
Submitting a search term to Simple Search enclosed in double-quotes looks like it returns all searchable entries, whether the search term is present or not.
I believe this behaviour appeared in EE4/5. Results for double-quoted searches in EE3 were, so far as I remember, as expected, with the quotes creating a single term from multiple terms.
Using double-quotes to create a single term is the optimal behaviour here, I think. Second-best might be to ignore the quotes and retain multiple terms. But the current behaviour doesn't make sense.
(NB: Behaviour with single-quotes is again different, and might also be folded in to a solution here, but the current behaviour isn't as obviously odd.)
How To Reproduce
In my set-up, searching for
Similarly, searching for