When I was initially testing, I found that two entities were being set for `terms` - the value pulled from database regarding the Terms checkbox, and the search query terms. Renaming the later to queryTerms, and saving it outside of the method, means it can be re-used in other methods.