简体   繁体   中英

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

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

您可以尝试搜索无报价的Bike AND Boy吗?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM