near, near/n

The near operator selects documents that contain the items specified in the query and are near each other (“near” being a relative term). The documents in which the search words appear closest to each other receive the highest relevance-ranking.

The near/n operator specifies how far apart the items can be (n has a maximum value of 1000). The following example selects documents in which the words “raconteur” and “home” appear within 10 words of each other:

select t2.copy
from i_blurbs t1, blurbs t2
and t1.index_any = "<near/10>(raconteur, home)"