Modify

Opened 17 years ago

Closed 17 years ago

#2673 closed enhancement (fixed)

[PATCH] key=value operator for search action

Reported by: jttt Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: Cc:

Description

New operator for search action with following semantics:

tagName=tagValue - matches tag with key=tagName and value=tagValue. It's exact match, no partial matches or special key types as with ':' operator
tagName=* - key with any value
tagName= - tagName doesn't exists
*=tagValue - any tag with value = tagValue
*=* - any tag
*= -untagged

The main difference between '=' and ':' is that ':' has some special keys that act differently (type,user,id,modified,...) and ':' is doing fulltext search while '=' is for exact match.

Some of '=' operator features can be emulated by ':' with regular expressions, for example ^type$:^route$, but using regual expression for such a simple thing is not quite comfortable and not everybody knows regual expressions.

Other features can't be afaik emulated, for example "tagName=" (meaning tag with tagName doesn't exist)

Attachments (1)

keyvaluesearch.patch (8.6 KB ) - added by jttt 17 years ago.

Download all attachments as: .zip

Change History (2)

by jttt, 17 years ago

Attachment: keyvaluesearch.patch added

comment:1 by stoecker, 17 years ago

Resolution: fixed
Status: newclosed

In r1641.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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