开发者

Can the defaultSearchField in a Solr schema be set to "any or all" fields?

开发者 https://www.devze.com 2023-01-13 13:42 出处:网络
There is a parameter in the Solr schema to set a default search field like so... <!-- field for the QueryParser to use when an explicit fieldname is absent -->

There is a parameter in the Solr schema to set a default search field like so...

<!-- field for the QueryParser to use when an explicit fieldname is absent -->
<defaultSearchField>detail</defaultSearchField开发者_如何转开发>

...But I would like to search all fields (I have five besides "detail") when the user does not specify.

How can I make search all fields the default behavior?


Use "copy field" instructions to copy the content of all fields into a "catch all" field at index time. Use that field as the default search field.

0

精彩评论

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