Proximity searches

You can specify the number of nonsearch words that can occur between search terms in a proximity search.

To perform a proximity search, enclose the search terms within double quotation marks and append a tilde (~) followed by the number of nonsearch words allowed. For example, to search for the terms curb and lake within 8 words of each other within a document, use the following search predicate:
bts_contains(column, ' "curb lake"~8 ')