简体   繁体   English

通过前缀搜索SOLR构面并突出显示结果

[英]SOLR facet search by prefix with results highlighting

Can I search via facet by prefix with results highlighting? 我可以通过带有突出显示结果的前缀按构面搜索吗? For example I have 2 documents: name = "document1" title = "Simple query" name = "document2" title = "Simple queries" 例如,我有2个文档:name =“ document1” title =“简单查询” name =“ document2” title =“简单查询”

can I searching documents with prefix "quer"? 可以搜索带有前缀“ quer”的文档吗? And can I highlight returned results? 我可以突出显示返回的结果吗?

facet.prefix just limits the terms on which to facet to those starting with the given string prefix. facet.prefix仅将面向方面的术语限制为以给定字符串前缀开头的术语。

This does not effect or change the search results, it simply reduces the facet values returned to those beginning with the specified prefix. 这不会影响或更改搜索结果,它只是将返回的构面值减小为以指定前缀开头的构面值。

Search results would be determined only by the queries and limited by facet or filter queries. 搜索结果将仅由查询确定,并受构面或过滤器查询限制。

So you cannot search the documents using facet.prefix, not would the results be highlight by the parameter. 因此,您无法使用facet.prefix搜索文档,结果也不会通过参数突出显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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