RE: Searching two words

2013-07-12 Thread raghavendra.k.rao
Uwe, Thank you very much for your suggestions! Raghu -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Friday, July 12, 2013 2:02 AM To: java-user@lucene.apache.org Subject: RE: Searching two words Hi, - if you want to search for those both words next to each

RE: Searching two words

2013-07-11 Thread Uwe Schindler
Hi, - if you want to search for those both words next to each other, use a phrase query. This is by putting quotes around, QueryParser will parse this to a Lucene PhraseQuery - If you don't want to have a phrase and just want to ensure that both words must be in the document, prefix both words