Modify

Opened 12 years ago

Closed 11 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 Changed 12 years ago by jttt

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 Changed 12 years ago by HamishB <hamish_b@…>

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 Changed 11 years ago by Ldp

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 Changed 11 years ago by bastiK

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.