Provide two 'does not contain' options on advanced search page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
This is a follow-up to bug 1019360, which I may have set prematurely to Invalid. Many of the issues identified in the bug were addressed with the 2.4 QP changes, but, despite the fact that a branch was submitted to do so, we never addressed the issue where the 'does not contain' option wraps the excluded terms in quotation marks.
The problem arises when users attempt to exclude multiple words using the advanced search option. The search will exclude the entire phrase rather than the individual words. Since the 'contains' option treats the search terms as individual words, user expectation is that the 'does not contain' search will also treat the search terms as individual words, not as a phrase.
We propose code that:
* Changes the 'does not contain' search to treat excluded terms as individual search terms, not as a phrase. The branch on the previous bug would do this: http://
* Adds a 'does not contain phrase' option that correlates with the 'contains phrase' option available advanced search. This option would behave in the same way that 'does not contain' currently behaves. This might be considered a new feature, but could possibly be considered a bug fix so that users don't lose functionality they currently have if the first change is implemented.
Changed in evergreen: | |
assignee: | Kathy Lussier (klussier) → nobody |
After discussing this a bit with miker in IRC, the above branch will need to be adjusted. It worked just fine when I was testing it with one excluded term, but will not work with multiple terms.
Also, a bit of clarification on what the system should do if multiple terms are enter. It should exclude records that have any of the search terms that were entered.
For example, if the user enters the following in the 'does not contain' box
larry moe curley
It should exclude records that just have larry, just have moe, just have curley, or has any combination of those names.