Modify

Opened 3 years ago

Closed 2 years ago

#5015 closed enhancement (fixed)

rfe: logical AND & for search tool

Reported by: HamishB <hamish_b@…> Owned by: team
Priority: normal 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 3 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 3 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 3 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 2 years ago by bastiK

  • Resolution set to fixed
  • Status changed from new to closed

In [3818/josm]:

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.