Page 1 of 1
Help to use boolean tag search
Posted: 23 Mar 2012 01:13
by cadu
Hi,
I tried to execute a simple boolean search on tags and I couldn't. I have tried:
"tag1" OR "tag2"
'tag1' OR 'tag1'
tag1 OR tag2
Nothing worked. Any help please?
Ps. Attached an example.
Re: Help to use boolean tag search
Posted: 23 Mar 2012 01:19
by nas8e9
I'm not sure about the formal answer, but some quick experimentation with searching for multiple labels, seems to indicate that the pipe symbol ("|") signifies OR in this context.
Re: Help to use boolean tag search
Posted: 23 Mar 2012 05:47
by Twisten
Heh, I totally did not notice that 'tags' tab in IP.
Re: Help to use boolean tag search
Posted: 23 Mar 2012 12:17
by cadu
That is it!!!
Pipes and commas are very useful for tag searching.
From XYplorer help=>
Comma as AND, Pipe as OR: There is a special shorthand syntax that's only applicable for the tags selector: You can use the comma as an AND operator, and the pipe as an OR operator. Here are some examples, including possible combinations with Loose Boolean operators ; (OR) and [space] (AND):
tags:cats,dogs,ants tag "cats" AND "dogs" AND "ants"
tags:cats,dogs;ants tag ("cats" AND "dogs") OR "ants"
tags:cats|dogs|ants tag "cats" OR "dogs" OR "ants"
tags:cats|dogs ants tag ("cats" OR "dogs") AND "ants"
tags:"birds,m m" tag "birds" AND "m m"
The quotes in the last example are necessary because of the space in "m m".
Note that you cannot mix commas and pipes.
Re: Help to use boolean tag search
Posted: 23 Mar 2012 13:00
by admin
nas8e9 wrote:I'm not sure about the formal answer, but some quick experimentation with searching for multiple labels, seems to indicate that the pipe symbol ("|") signifies OR in this context.
Why experimentation? Use the
Select Tags... button and the syntax is handled for you.

Re: Help to use boolean tag search
Posted: 23 Mar 2012 13:01
by admin
Twisten wrote:Heh, I totally did not notice that 'tags' tab in IP.
It is quite new (v10.80.0305 - 2012-02-15 21:59).