Solr 模式中的 defaultSearchField 可以设置为“任意或全部”吗?领域?
Solr 模式中有一个参数可以设置默认搜索字段,如下所示...
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
<defaultSearchField>detail</defaultSearchField>
...但是当用户未指定时,我想搜索所有字段(除了“详细信息”之外我还有五个字段)。
如何使搜索所有字段成为默认行为?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用“复制字段”指令在索引时将所有字段的内容复制到“捕获所有”字段中。使用该字段作为默认搜索字段。
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.