Specifications

Chapter 7: Search
document. This is equivalent to a union using sets. You can use the || symbol in
place of the word OR. To search for documents that contain either "Microsoft
Windows" or just "Microsoft", use either of the following queries:
"Microsoft Windows" Microsoft
"Microsoft Windows" OR Microsoft
AND
The AND operator matches documents where both terms exist anywhere in the
text of a single document. This is equivalent to an intersection using sets. You
can use the && symbol in place of the word AND. To search for documents that
contain "Microsoft Windows" and "SQL Server", use the following query:
"Microsoft Windows" AND "SQL Server"
+
The "+" or required operator requires that the term after the "+" symbol exist
somewhere in a field of a single document. To search for documents that must
contain "Microsoft" and may contain "Windows", use the following query:
+Microsoft Windows
NOT
The NOT operator excludes documents that contain the term after NOT. This is
equivalent to a difference using sets. You can use the ! symbol in place of the
word NOT. To search for documents that contain "Microsoft Windows" but not
"SQL Server", use the following query:
"Microsoft Windows" NOT "SQL Server"
Note: The NOT operator cannot be used with just one term. For example, the
following search does not return any results:
NOT "Microsoft Windows"
-
The "-" or prohibit operator excludes documents that contain the term after the "-"
symbol. To search for documents that contain "Microsoft Windows" but not "SQL
Server" use the following query:
"Microsoft Windows" -"SQL Server"
145