Opened 15 years ago
Closed 14 years ago
#5015 closed enhancement (fixed)
rfe: logical AND & for search tool
Reported by: | 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 , 15 years ago
comment:2 by , 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 , 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.
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.