Edgewall Software
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: ian.wood@… 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 Christian Boos, 12 years ago

Component: generalquery system
Keywords: keywords added; custon ticket query removed
Milestone: next-major-releases

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.

comment:2 by th@…, 10 years ago

Cc: th@… added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.