Results > Search and Retrieve > Combine Different Search Types > Exact Phrase and Proximity Searches

Exact Phrase and Proximity Searches
If you combine an exact phrase search for multiple phrases (in which you frame the individual phrases in quotation marks) with a Proximity search, IDOL server obeys the Proximity rules while executing the exact phrase search.Enclosing phrases in brackets ensures that Proximity operators tie to entire phrases. For example:
http://IDOLhost:port/action=Query&Text=("Egyptian cats")+ NEAR2+("Phoenician sailors")
This query returns only documents in which a match of the phrase Egyptian cats is no further than two words away from a match of the phrase Phoenician sailors (after stemming and stopping).
http://IDOLhost:port/action=Query&Text=("Egyptian cats")+BEFORE+("Phoenician sailors")
This query returns only documents that match the phrase Egyptian cats and the phrase Phoenician sailors (after stemming and stopping). The phrase Egyptian cats must occur before the phrase Phoenician sailors.