lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkateshprasanna <>
Subject Re: Atomic index/search for a phrase
Date Thu, 07 Sep 2006 03:51:57 GMT

Which is more efficient with respect to performance?
      Indexing a phrase as it is and searcing with the help of a TermQuery
      Storing only single words in index and making use of quoted search


If you index "A Phrase" as untokenized, you would find it with a  
TermQuery for "A Phrase".  You must use exact case.  If you're using  
QueryParser, the text get analyzed and most analyzers lowercase.  If  
this expression is quoted it would become a PhraseQuery with two  
terms, or if it is unquoted it would become a BooleanQuery with two  
TermQuery clauses - either way it would not match if you indexed the  
phrase as untokenized.

View this message in context:
Sent from the Lucene - Java Users forum at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message