Help to use boolean tag search

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Help to use boolean tag search

Post 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.
To see the attached files, you need to log into the forum.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Help to use boolean tag search

Post 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.

Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Re: Help to use boolean tag search

Post by Twisten »

Heh, I totally did not notice that 'tags' tab in IP.

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Re: Help to use boolean tag search

Post 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.

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Help to use boolean tag search

Post 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. :)

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Help to use boolean tag search

Post 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).

Post Reply