简体   繁体   English

强制文档进入SOLR搜索结果

[英]Force document(s) into SOLR search results

Is there a way to force specific documents into SOLR search results? 有没有一种方法可以将特定文档强加到SOLR搜索结果中?

I'm trying something like this but is not working: 我正在尝试类似的方法,但是没有用:

/q=id:21321 OR myNormalSearchConditionsHereIncludingDismaxQUery

My goal is to have certain documents always show up in some search results, no matter what the query is. 我的目标是无论查询是什么,都始终在某些搜索结果中显示某些文档。

you can use Solr MoreLikeThis component 您可以使用Solr MoreLikeThis组件

This is just a quick thought i would make from your description. 根据您的描述,这只是一个简短的想法。 With this you will no longer require a second query and caching the results. 这样,您将不再需要第二个查询并缓存结果。

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

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