> 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: [email protected]
For additional commands, e-mail: [email protected]