Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat unstemmed words as normal search terms.
has_normal_search_terms? was only returning true if the query had a stemmed search term in it, such as Zterm. Searching for a word with capital letters, such as NHS, translates to an unstemmed query term “nhs”. This would not match and the search would default to sorting by newest rather than relevance. Unstemmed query terms should still match as a normal search term, not a prefixed one.
- Loading branch information