lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lamb <brian.l...@journalexperts.com>
Subject Default operator
Date Fri, 25 Mar 2011 20:54:38 GMT
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?

Thanks,

Brian Lamb

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message