Use the ONEAR operator for ordered proximity searches.
term1
must
appear within
num
words before
term2
in the document.
For example, if a user specifies:
"Mark Twain" NEAR/8 Hartford
The following sentence:
"Tour the Hartford, Connecticut home where Mark Twain lived and worked from 1874 to 1891."
would not be considered a match because the word
"Hartford"
must appear after the phrase
"Mark Twain"
in the text (assuming that the next eight words are
not
"Hartford"
).