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, Content obeys the proximity rules while it processes the exact phrase search. To ensure that proximity operators tie to an entire phrase, enclose the phrases in brackets. For example:

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).

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.


_HP_HTML5_bannerTitle.htm