Searching - Boolean Operators
You can use the Boolean operators and, or, near or not in searching. Without these Boolean operators it is assumed you're and'ing the words together. The operators are not case sensitive. These three searches are the same:
juliet ophelia ophelia juliet juliet AND ophelia
The not operator inverts the results of a search.
not ophelia
finds all the pages that do not contain the word "ophelia".
Parentheses can be used to group searches.
not (juliet and ophelia)
The result is all pages that have none or one term, but not both.
To search for the words and, or, near or not, place them in a double quotes.
"not"
will search for the word "not".
Other examples:
juliet or ophelia
retrieves files containing either the words "juliet" or "ophelia".
juliet ophelia not helena (juliet and ophelia) and not helena
retrieves first the pages that contain both the words "juliet" and "ophelia"; then among those the ones that do not contain the word "helena".
The near keyword is similar to and but implies a proximity between the words. The near keyword takes a integer argument as well, indicating the maximum distance between two words to consider a valid match.
Example:
juliet near5 ophelia
would match the document if the words "juliet" and "ophelia" appeared within 5 positions of one another.
A near search with no argument or argument of 0 is the same as an and search.