lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Am I correctly parsing the strings ? Terms or Phrases ?
Date Mon, 21 Mar 2011 16:55:00 GMT
>     description = new TermQuery(new
> Term("description", "my string"));
> 
> I ask Lucene to consider "my string" as unique word, right?

Correct.
 
> I actually need to consider each word, should I use
> PhraseQuery instead ? 

If description field is tokenized/analyzed during indexing you need to use PhraseQuery. 

May you can use QueryParser instead?


      

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