Modify

Opened 15 years ago

Closed 14 years ago

#5015 closed enhancement (fixed)

rfe: logical AND & for search tool

Reported by: HamishB <hamish_b@…> Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: search Cc:

Description

Hi,

I'm surprised that the search tool includes OR |, but not AND &.

I finally figured out that I can run the tool multiple times to get the same effect, but that seems like a lot of work vs. just typing out a simple quasi-SQL line of logic.

can we have it? is it already there and just not documented? (don't think so, as it fails)

thanks,
Hamish

Attachments (0)

Change History (4)

comment:1 by jttt, 15 years ago

and is implicit, just type two expressions and both of them will need to match. For example key1=value1 key2=value2 search for primitives that have both key1=value1 and key2=value2

But this is not first time somebody is asking about AND, maybe this should be documented and even optional AND or & might be supported.

comment:2 by HamishB <hamish_b@…>, 15 years ago

jttt:

and is implicit, just type two expressions and both of them will
need to match.

ah, excellent. maybe just make AND a no-op? .. i.e. just parse the word out of the string to ignore it? hmmm, I wonder how that will effect ( ) constructions?

thanks for the quick reply,
Hamish

comment:3 by Ldp, 14 years ago

Just be careful how this is handled when the data does actually contain 'AND'. A quoted "AND" should definately not be a no-op.

comment:4 by bastiK, 14 years ago

Resolution: fixed
Status: newclosed

In [3818/josm]:

fixed #5857 - add "closed" to search, fixed #5015 - logical AND & for search tool

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.