Solr MoreLikeThis not working for multiple shards?

拥有回忆 提交于 2019-12-06 09:11:42

The More Like This Handler is, as far as I know, single shard only, so it'll only consider the documents available in the local shard.

The More Like This Query Parser do however mention that it is Solr Cloud-aware, so try using that instead.

MLTQParser enables retrieving documents that are similar to a given document. It uses Lucene's existing MoreLikeThis logic and also works in SolrCloud mode. The document identifier used here is the unique id value and not the Lucene internal document id. The list of returned documents excludes the queried document.

Find documents like the document with id=1 and using the name field for similarity.

{!mlt qf=name}1

Adding more constraints to what qualifies as similar using mintf and mindf.

{!mlt qf=name mintf=2 mindf=3}1

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