You can use BI24 to find words that are separated by a specific number of words in a document. To do this, type the tilde (“~”) symbol at the end of a phrase followed by the number of words that separate those two words.
For example to search for a “Thin” and “Pizza” within 4 words of each other in a document use the search:
Results: