通过前缀进行SOLR方面搜索,并突出显示结果 [英] SOLR facet search by prefix with results highlighting

查看:119
本文介绍了通过前缀进行SOLR方面搜索,并突出显示结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过突出显示结果的前缀按构面搜索吗? 例如,我有2个文档: 名称="document1"标题=简单查询" 名称="document2"标题=简单查询"

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"

我可以搜索带有前缀"quer"的文档吗?我可以突出显示返回的结果吗?

can I searching documents with prefix "quer"? And can I highlight returned results?

推荐答案

facet.prefix仅将面向方面的术语限制为以给定字符串前缀开头的术语.

facet.prefix just limits the terms on which to facet to those starting with the given string 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.

因此,您不能使用facet.prefix搜索文档,结果也不会通过参数突出显示.

So you cannot search the documents using facet.prefix, not would the results be highlight by the parameter.

这篇关于通过前缀进行SOLR方面搜索,并突出显示结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆