I'm not sure why using a PhraseQuery allows you to search within a
sentence. PhraseQuery just makes sure that the terms appear next to
each other (or within some slop), but it isn't aware of sentence or
paragraph boundaries.
See
http://www.lucidimagination.com/search/document/6a5dfb8df2ce
Thanks Nada,
it again works perfectly
seid m.
On 2/19/09, Nada Mimouni wrote:
>
>
>
> You need to create a TermQuery or PhraseQuery with terms in your query
> depending on what result you need exactly.
>
> To create PhraseQuery, try the built-in phrase processing with double
> quotes, e.g.
> "th
You need to create a TermQuery or PhraseQuery with terms in your query
depending on what result you need exactly.
To create PhraseQuery, try the built-in phrase processing with double quotes,
e.g.
"this is a phrase".
See the Term section at
http://lucene.apache.org/java/2_4_0/queryparsersyn