开发者

How do I enable a "Bicycle AND Boy" search in Solr?

开发者 https://www.devze.com 2023-01-17 04:54 出处:网络
I have solr up and running but I cannot get the results when I search \"Bicycle 开发者_Python百科AND Boy\", works fine for \"Bicycle Boy\".What are the steps to enable such searches? By default the co

I have solr up and running but I cannot get the results when I search "Bicycle 开发者_Python百科AND Boy", works fine for "Bicycle Boy". What are the steps to enable such searches?


By default the configuration for Solr is set to use OR as the default query operator. Look for this line in the schema.xml file:

<solrQueryParser defaultOperator="OR"/>

You can also reference the Solr Tutorial for more details on querying... http://lucene.apache.org/solr/tutorial.html#Querying+Data


Can you try searching Bicycle AND Boy without quotations?

0

精彩评论

暂无评论...
验证码 换一张
取 消