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

Reply via email to