Calculates scores for documents matching a query by taking the complement (subtracting from 1) the scores for the query’s search elements. Following is an example of search syntax:
<COMPLEMENT> ("computers")
The COMPLEMENT
operator is a unary operator. It multiplies
search elements as specified. The elements are combined, using the ACCRUE
operator by default, to generate a single score which is then
complemented. A sample query expression with two search elements is
below:
<COMPLEMENT> ("computers","laptops")
In the above example, the query is evaluated as the word "computers"
accrued using the ACCRUE
operator with the word "laptops". The COMPLEMENT
operator is
applied to the result.