lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Searching all terms - SolrJ
Date Wed, 02 Mar 2011 02:49:04 GMT

: Yes but I want to leave the choice to the user.
: He can either search all the terms or just some.
: Is there any more flexible solution ? Even if I have to code it by hand ?

the declaration in the schema dictates the default.

you can override the default at query time using the "q.op" param (ie: 
q.op=AND, q.op=OR) in the request.

in SolrJ you would just call solrQuery.set("q.op","OR") on your SolrQuery 


View raw message