--- On Fri, 3/25/11, Brian Lamb <brian.l...@journalexperts.com> wrote:

> From: Brian Lamb <brian.l...@journalexperts.com>
> Subject: Default operator
> To: solr-user@lucene.apache.org
> Date: Friday, March 25, 2011, 10:54 PM
> Hi all,
> 
> I know that I can change the default operator in two ways:
> 
> 1) <*solrQueryParser defaultOperator*="AND|OR"/>
> 2) Add q.op=AND
> 
> I'm wondering if it is possible to change the default
> operator for a
> specific field only? For example, if I use the URL:
> 
> http://localhost:8983/solr/search/?q=animal:german
> shepherd&type:dog canine
> 
> I would want it to effectively be:
> 
> http://localhost:8983/solr/search/?q=animal:german AND
> shepherd&type:dog OR
> canine
> 
> Other than parsing the URL before I send it out, is there a
> way to do this?

With http://wiki.apache.org/solr/LocalParams there  can be some ways:
fq={!q.op=OR df=type}dog canine&q=german shepherd


      

Reply via email to