SOLR facet search by prefix with results highlighting

旧城冷巷雨未停 提交于 2019-12-11 18:53:09

问题


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"

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


回答1:


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.

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



来源:https://stackoverflow.com/questions/7751698/solr-facet-search-by-prefix-with-results-highlighting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!