Simple search for multiple tags

Hello, despite looking at examples and documents I cannot run this simple search in the discover screen:
tags: A and B
Meaning all the records with both tag "A" and and tag "B"
I can search for tags:A

Failed with:
tags:(a and b)
tags:{a and b}
tags:(a,b)
tags:a,b
tags:a and b

Hi Dor,

try writing AND instead of and
'And' and 'OR' should be used with capital letters
"tags:a AND tags:b" should work

Let me know if it helps
Alona

hi @dorj1234,

can you do either:
tags:(+a +b)
or
tags:(a AND b)

1 Like

Thank you both ! using "AND" worked. Did I miss that in the documentation somewhere?

yeah, it's a little buried in the Lucene documentation. https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#AND

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.