Solr MoreLikeThis:我可以给Solr 5个文档ID并获取更多类似于这5个文档的文档吗? [英] Solr MoreLikeThis: Can I give Solr 5 document IDs and get more documents like these 5?
本文介绍了Solr MoreLikeThis:我可以给Solr 5个文档ID并获取更多类似于这5个文档的文档吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从文档中我不清楚这一点.是否可以提供Solr X文档ID并告诉我我想要与之相似的文档?
I'm unclear on this point from the documentation. Is it possible to give Solr X document IDs and tell it that I want documents similar to those?
示例:
- 用户正在浏览5篇不同的文章
- 我将这5篇文章的ID发送给Solr,以便向用户展示其他类似的文章
我不清楚是否要发送文档ID,也不清楚如本示例中MoreLikeThis是否可以对多个文档进行操作.
I am not clear about sending the document IDs, nor whether MoreLikeThis can operate on multiple documents as in this example.
推荐答案
您可以尝试通过查询q=id:(document_id1 OR document_id2 OR document_id3)
传递多个ID:-
you can try passing multiple Ids with the Query q=id:(document_id1 OR document_id2 OR document_id3)
:-
例如
http://localhost:8080/solr/select/?qt=mlt&q=id:(document_id1 OR document_id2 OR document_id3)&mlt.fl=[field1],[field2],[field3]&fl=id&rows=10
这篇关于Solr MoreLikeThis:我可以给Solr 5个文档ID并获取更多类似于这5个文档的文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文