screen shot: email word pair search

Example :  email word pair locator

EMail-Search-Word-Pairs.dss identifies messages with words "near" each other.   Note the "loopback" that effectively resets the counter if one of the words is "near itself".

The min/max range in the "(near)" pattern defines exactly what "near" means :

screen shot: pattern defining nearness

In this case "nearness" is defined as:  within 50 characters.

EMail-Search-Word-Pairs.dss makes use of two string sets :

Each "Word" string set should contain at least one word.   Either string set could contain a group of alternate words :

Definition of string set containing alternate words