Results > Search and Retrieve > Phrase Search > Phrase Search Examples

Phrase Search Examples
The word fresh stems to fresh, and the word lovely stems to love (To determine a word stem, use the TermGetInfo action). These words also stem to fresh and love (To determine the words to which a stem expands, use the TermExpand action):
 
Example 1 (conceptual)
action=Query&Text=fresh and Lovely
*
*
*
IDOL server matches this query conceptually in all configurations, because the phrase is not in quotation marks and none of its words are prefixed with a tilde (~).
IDOL server first finds documents that contain both words that have the same stem as fresh and words that have the same stem as lovely (ignoring their case), and then documents that contain either words that have the same stem as fresh or words that have the same stem as lovely (ignoring their case).
 
Example matching words
Example nonmatching words
Example matching words
Example nonmatching words
Example 2 (conceptual or exact)
action=Query&Text="fresh and Lovely"
*
In the default configuration, the quotation marks indicate that this is a phrase search. IDOL server removes any stop words in the phrase and applies stemming. It finds only documents in which a word whose stem matches the stem of fresh occurs immediately before a word that matches the stem of lovely (ignoring their case).
 
*
AdvancedSearch=true or AdvancedCaseSearch=true
When AdvancedSearch or AdvancedCaseSearch are set to true, IDOL server removes any stop words that the phrase contains and then matches it exactly without stemming, because the phrase is in quotation marks. Because none of the words are prefixed with a tilde (~), it finds only documents that contain the phrase fresh lovely (ignoring its case).
 
Example 3 (conceptual or exact)
action=Query&Text="fresh and ~Lovely"
*
In the default configuration, the quotation marks indicate that this is a phrase search. IDOL server ignores the tilde (~). It removes any stop words that the phrase contains and applies stemming. It finds only documents in which a word whose stem matches the stem of fresh occurs immediately before a word that matches the stem of lovely (ignoring their case).
 
*
If you set AdvancedSearch to true, IDOL server removes any stop words that the phrase contains and then matches it exactly without stemming because, the phrase is in quotation marks. It ignores the tilde (~). IDOL server finds only documents that contain the phrase fresh lovely (ignoring its case).
 
*
If you set AdvancedCaseSearch to true, IDOL server removes any stop words that the phrase contains and then matches it exactly without stemming, because the phrase is in quotation marks. As Lovely is prefixed with a tilde (~), it is matched case-sensitively. IDOL server finds only documents that contain the phrase fresh Lovely.