The special operator ++ requires a term to appear in the document results, but not necessarily the sentence results. This is useful if a user wants to constrain the search to documents about a term, yet not require that the sentence results from those documents contain the term. The ++ operator must immediately precede the query term, with no intervening white space, and there must be white space before the ++ operator, as in

book ++clubs

Note that since ATG Search applies morphology and term expansion by default, the ++ operator applies to the query index term plus all of its expansions. To require a literal term in the document results, the query can use the double-quote operator with the ++ operator, as in book ++”clubs”. Multiple terms with the ++ operator form a Boolean AND of those terms; all of them must appear in the documents of each result.

The operator +| requires a term to appear in the document results, but not necessarily the sentence results, in the same way as the ++ operator. Unlike the ++ operator, however, multiple terms with the +| operator form a Boolean OR; at least one of them must appear in the documents of each result. This is useful for situations where there are alternative terms that reflect the overall content that the user wishes to search within.

Note that a single query can have terms that use each of these operators. First, the terms with the ++ operator are used to constrain the document candidates to those which contain all of these terms. Next, the terms with the +| operator are also used to further constrain the document candidates to those which contain one of these terms. Finally, the terms with the + operator are used to restrict the sentence results to those that contain these terms.

 
loading table of contents...