Modify

Ticket #5015 (closed enhancement: fixed)

Opened 21 months ago

Last modified 13 months ago

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

Change History

comment:1 Changed 21 months 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 21 months 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 17 months 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 13 months ago by bastiK

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

In [3818/josm]:

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

View

Add a 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.