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/queryparsersyntax.html

You can also have a look  at 
http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Getting-Started-with-Lucene/
 

Best
Nada


-----Original Message-----
From: Seid Mohammed [mailto:[email protected]]
Sent: Thu 2/19/2009 2:29 PM
To: [email protected]
Subject: searching a sentence or paragraph
 
from lucen index, how can we search a sentence or a paragraph which
satisfy our query?

thanks a lot
seid m
-- 
"RABI ZIDNI ILMA"

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to