I'm using an app that has SOLR embedded. SOLR is running as a war in the webapps area of Tomcat. Is there a SOLR configuration that allows me to switch the default SOLR behavior for searches to assume 'AND' instead of 'OR' as the conjunctive operator?
Add (or modify h/t @Madbreaks ) this line in your schema file (usually schema.xml)
<solrQueryParser defaultOperator="AND"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With