Change SOLR Default Conjunction

2019-07-08 09:19发布

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?

1条回答
太酷不给撩
2楼-- · 2019-07-08 09:41

Add (or modify h/t @Madbreaks ) this line in your schema file (usually schema.xml)

<solrQueryParser defaultOperator="AND"/>
查看更多
登录 后发表回答