|
Boolean Operators
Boolean operators allow terms to be combined through logic operators. Supported Boolean operators are: AND, "+", OR, NOT and "-". (Note: Boolean operators must be ALL CAPS). The OR operator is the default conjunction operator. This
means that if there is no Boolean operator between two terms (and if the terms are not part of a phrase), the OR operator is used.
"OR" -- The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets.
"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.
NOT -- The NOT operator excludes documents that contain the term after NOT.
Note: The NOT operator cannot be used with just one term.
"+" -- The "+" or required operator requires that the term after the "+" symbol exist somewhere in a the field of a single document.
"-" -- The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.
For example,
 |
 |
 |
 |
"jakarta apache" AND "Apache Lucene" |
 |
 |
 |
 |
|