Re: Query String for a phrase?

2007-03-16 Thread ruchi thakur
Thanks a lot for your help. I am now using query as documented for phrase. Regards, Ruchi On 3/13/07, Chris Hostetter [EMAIL PROTECTED] wrote: : ok, so does that mean i can use both q1 and q2 for phrase query ie; for : searching words adjacent to each other. Actually that was my only concern,

Re: Query String for a phrase?

2007-03-12 Thread Chris Hostetter
: ok, so does that mean i can use both q1 and q2 for phrase query ie; for : searching words adjacent to each other. Actually that was my only concern, : as i wanted to use q1 for phrase query, rather than q2. : Regards, Your example q1 is not hte correct syntax for a phrase query .. the correct

Re: Query String for a phrase?

2007-03-11 Thread ruchi thakur
am sorry , guess * caused confusion. My question is that, using jakartaapache am able to search for jakarta apache, but was confused as no reference to this query String(jakartaapache) could find anywhere on net. So just wanted to make sure if jakartaapache - jakarta apache like jakarta apache

Re: Query String for a phrase?

2007-03-11 Thread Erick Erickson
It depends upon your analyzer during both index and search operations. WhitespaceAnalyzer would do nothing to your string, and you'd have jakartaapache. StandardAnalyzer would give you two terms, jakarta and apache and at query time this would be either jakarta AND apache or jakarta OR apache,

Re: Query String for a phrase?

2007-03-11 Thread Doron Cohen
ruchi thakur [EMAIL PROTECTED] wrote on 11/03/2007 04:36:39: So just wanted to make sure if jakartaapache - jakarta apache like jakarta apache - jakarta apache ie; jakartaapache seaches for phrase jakarta apache Regards, Ruchi q1: jakartaapache - BooleanQurey(jakarta OR/AND apache)

Re: Query String for a phrase?

2007-03-11 Thread ruchi thakur
Thanks a lot for your help.. below is a snapshot from the code, am using for search org.apache.lucene.analysis.StopAnalyzer sa = new org.apache.lucene.analysis.StopAnalyzer(); org.apache.lucene.analysis.Analyzer analyzer = sa; QueryParser parser = new QueryParser(dIndexField, analyzer); Query

Re: Query String for a phrase?

2007-03-11 Thread Steffen Heinrich
On 11 Mar 2007 at 22:58, ruchi thakur wrote: Thanks a lot for your help.. below is a snapshot from the code, am using for search org.apache.lucene.analysis.StopAnalyzer sa = new org.apache.lucene.analysis.StopAnalyzer(); org.apache.lucene.analysis.Analyzer analyzer = sa; QueryParser parser

Re: Query String for a phrase?

2007-03-11 Thread ruchi thakur
ok, so does that mean i can use both q1 and q2 for phrase query ie; for searching words adjacent to each other. Actually that was my only concern, as i wanted to use q1 for phrase query, rather than q2. Regards, On 3/12/07, Steffen Heinrich [EMAIL PROTECTED] wrote: On 11 Mar 2007 at 22:58,

Re: Query String for a phrase?

2007-03-10 Thread ruchi thakur
does that mean* jakartaapache* should search for * jakartaapache* But using *jakartaapache* am able to search for *jakarta apache* , but was confused as no reference to this query String(jakartaapache) could find anywhere on net. Regards, Ruchi On 3/8/07, Doron Cohen [EMAIL PROTECTED] wrote:

Re: Query String for a phrase?

2007-03-10 Thread Doron Cohen
ruchi thakur [EMAIL PROTECTED] wrote on 10/03/2007 19:32:14: does that mean* jakartaapache* should search for * jakartaapache* I assume '*' here is for emphasizing the query text, - this is somewhat confusing because '*' is part of Lucene's query syntax for wildcard search. To the question -

Query String for a phrase?

2007-03-07 Thread ruchi thakur
Hello, Please suggest what should be the query String for a pharse search. Thanks and Regards, Ruchi

Re: Query String for a phrase?

2007-03-07 Thread Patrick Turcotte
Hi, Please suggest what should be the query String for a pharse search. Did you take a look at: http://lucene.apache.org/java/docs/queryparsersyntax.html ? Patrick

Re: Query String for a phrase?

2007-03-07 Thread ruchi thakur
Thanks Patrick. One more question. The info in link says to use the below query for phrase jakarta apache . It works fine. But when i run jakartaapache also, it has the same effect, ie; like a phrase. It works fine too. Though it is working but still am little doubtful as i could not

Re: Query String for a phrase?

2007-03-07 Thread Doron Cohen
Most likely the string jakartaapache is analyzed as a single word, both at indexing time and at search time. See also AnalysisParalysis in Lucene Wiki. ruchi thakur [EMAIL PROTECTED] wrote on 07/03/2007 20:39:27: Thanks Patrick. One more question. The info in link says to use the below