AND must be entirely capitalized to set clauses on both sides as
_required_.
Erik
On Nov 14, 2008, at 12:44 AM, Raghunandan Rao wrote:
Yes.
But is that how we do in Solrj by setting SolrQuery("text:Right And
title:go").
Thanks a lot.
-----Original Message-----
From: Ryan McKinley [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2008 10:55 AM
To: solr-user@lucene.apache.org
Subject: Re: Solrj queries
On Nov 14, 2008, at 12:14 AM, Raghunandan Rao wrote:
Hi,
Can anybody let me know how to do logical searches using Solrj. I
have
indexed the data and now I want to do search based on fields using
Solrj
as I have to retrieve in the form of beans.
For eg.
I have two fields, First name and last name
I have to retrieve only names which match both of the above fields.
q.setQuery( "first:value1 AND last:value2" );
It seem you are asking for:
http://lucene.apache.org/java/2_4_0/queryparsersyntax.html
and not really solrj related...
ryan