Search Syntax and Semantik

When I look at the search documentation, it states that boolean operators can be used and gives examples.
However in some cases it seems, that carelessly using the boolean syntax might give strange results.
E.g. “item:duplicated AND NOT kind:pdf” gives quite different results than “item:duplicated AND kind:!pdf” which of course is equivalent to “item:duplicated kind:!pdf”.
Is this a bug, or am I reading the documentation wrong?

I think the boolean operators are intended to operate inside search terms, not between expressions.
So, “AND” is implied between expressions:
item: duplicated kind: pdf is equivalent to “PDF documents that are duplicated.”
any: item:duplicated kind: PDF is a logical or, ie documents that are duplicated or PDF (including duplicated PDFs)
text: you AND me matches document whose text contains the words “you” and “me”
text: you AND NOT me matches document whose text contains the word “you” but not “me”.

1 Like