AND (&)

Use the AND operator to search for documents that contain at least one occurrence of each of the query terms.

The AND operator returns documents that contain all of the query terms, while OR operator returns documents that contain any of the query terms.

Syntax

Syntax Description

term1&term2

term1 and term2

Returns documents that contain term1 and term2. Returns the minimum score of its operands. All query terms must occur; lower score taken.

Example for AND Operator

To obtain all the documents that contain the terms blue and green and red, enter the following query:

'blue & green & red'

In an AND query, the score returned is the score of the lowest query term. In this example, if the three individual scores for the terms blue, green, and red is 10, 20 and 30 within a document, the document scores 10.

OR (|)