java-user@lucene.apache.org
[Top] [All Lists]

Re: How does PhraseQuery search for quoted phrases?

Subject: Re: How does PhraseQuery search for quoted phrases?
From: Erik Hatcher
Date: Wed, 6 Sep 2006 08:29:54 -0400

On Sep 6, 2006, at 5:37 AM, Venkateshprasanna wrote:
How does PhraseQuery search for quoted phrases when the index does not store
these phrases as it is?

Is there any analyzer that indexes the phrases?

The analyzer is responsible for some additional data about terms, specifically in this case a position increment. All built-in analyzers use a position increment of 1 for each term, meaning that each term is in a successive position than the previous one. PhraseQuery looks for all terms in the phrase in successive positions (or within a certain slop factor distance from one another).

        Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>