Note: You can enter query operators in upper- or lower-case. They are capitalized in the following examples only for purposes of clarity.
Note: The proximity operator does not work across field boundaries; you cannot use it to search for a word pair in which the words occupy separate fields within a record.Syntax:
word1 W/n word2where n is the number of words within which word2 must occur after word1. The variable n can be any integer greater than 0 (the actual limit is between 1,000,000,000 and 2,000,000,000). Stopwords and punctuation do not count as words in the range specified by n.
The proximity operator is unidirectional from left to right. It retrieves only those records in which word2 occurs within n words after word1. Occurrences of word1 within n words after word2 are not considered hits.
Example:
amphibian W/5 DNAThis query will retrieve records in which DNA occurs within five words after amphibian.
Note: The adjacency operator does not work across field boundaries; you cannot use it to search for a word pair in which the words occupy separate fields within a record.Syntax:
word1 ADJ word2 str-ing str'ing str,ing str.ingThe adjacency operator is unidirectional from left to right. It retrieves only records in which word2 follows word1. Occurrences of word1 that follow word2 are not considered hits.
Examples:
great ADJ white 337-81-4417 O'Hara 2,001 Carcharodon.carcharias
If you specify a word range with it, the near operator functions as a bidirectional proximity operator. If no word range is specified, it serves as a bidirectional adjacency operator.
Note: The near operator does not work across field boundaries; you cannot use it to search for a word pair in which the words occupy separate fields within a record.Syntax:
word1 NEAR/n word2 word1 NEAR word2where n is the number of words within which word1 must occur before or after word2. The variable n can be any integer greater than 0 (the actual limit is between 1,000,000,000 and 2,000,000,000). Stopwords and punctuation do not count as words in the range specified by n.
Examples:
Whitewater NEAR/5 indictment tax NEAR increaseThe first query will retrieve records in which Whitewater occurs within five words of indictment.
The second query will retrieve records in which tax occurs immediately before or after increase.
[Previous Topic] [Contents] [Next Topic]