lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: How does PhraseQuery search for quoted phrases?
Date Wed, 06 Sep 2006 12:29:54 GMT

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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message