Search for negation - Alfresco Search Services - 2.0 - 2.0 - Ready - Alfresco - external - Alfresco/Alfresco-Search-Services/2.0/Alfresco-Search-Services/Using/Full-text-search-reference/Search-for-negation - 2025-04-04

Alfresco Search Services

Platform
Alfresco
Product
Alfresco Search Services
Release
2.0
License

You can narrow your search results by excluding words with the NOT syntax.

Single terms, phrases, and so on can be combined using “NOT” in upper, lower, or mixed case, or prefixed with “!” or “-”.

These queries search for nodes that contain the term “yellow” but do not contain the term “banana” in the content.

yellow AND NOT banana
yellow AND !banana
yellow AND -banana

These queries search for nodes that contain the term “banana” but do not contain the term “yellow” in the content.

NOT yellow banana
-yellow banana
!yellow banana

The AND operator can be omitted for Share.

The NOT operator can only be used for string keywords; it doesn’t work for numerals or dates.

Prefixing any search qualifier with a - excludes all results that are matched by that qualifier.