Reputation: 2650
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?
Upvotes: 3
Views: 775
Reputation: 8218
Add (or modify h/t @Madbreaks ) this line in your schema file (usually schema.xml
)
<solrQueryParser defaultOperator="AND"/>
Upvotes: 4