Modify ↓
Opened 12 years ago
Last modified 10 years ago
#10866 new defect
custom search query cannot do "keywords contains x and y"
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | query system | Version: | |
Severity: | normal | Keywords: | keywords |
Cc: | th@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The custom search query (eg: on this site) cannot search for tickets containing both of two keywords.
If you enter a keyword search for "x", then use the "And" dropdown to add a second keyword "y" to the search, the GUI indicates that it will search for "x or y", and indeed, the found tickets are those that contain one of more of "x" and "y".
Attachments (0)
Change History (2)
comment:1 by , 12 years ago
Component: | general → query system |
---|---|
Keywords: | keywords added; custon ticket query removed |
Milestone: | → next-major-releases |
comment:2 by , 10 years ago
Cc: | added |
---|
Note:
See TracTickets
for help on using tickets.
Well, it can: ?keywords=~custom+query. But I agree it's a bit confusing to have an "And" selector and end up with an "OR" clause…
The "And" makes perfect sense when you add another field (i.e. this adds an "AND" clause), but when you select the same field again, this means "add another inclusive criterion for the same field". We could improve that by having a (+) after the value, as I already suggested elsewhere.
For the specific case of the keyword field (and keyword-like fields, see TracTicketsCustomFields#AvailableFieldTypesandOptions text format=list), a tooltip (or the HTML5 placeholder attribute) saying "match all given words" would nevertheless help.