如果将存储的文档传递给Morelikethishandler,请执行我的方法= 1排除通过的文档?
-
16-11-2019 - |
题
在Solr中,我正在使用Morelikethis Handler。我在索引中已经存在的文档的唯一ID中,以查找相关文档。指定mlt.mindf= 1是否包括前面提到的文件?如果我希望确保它存在于除了我传递之外的至少一个文档中,如果我设置mlt.mindf= 2的值,请转而?
解决方案
That's a fun project your'e doing :D
And your'e correct. You should set the value to 2 if you want to make sure that there is at-least one other document with the same term.
Tip:
If you're automatically finding related documents,i.e, the relation(term) is not specified by a user, make sure you search for good keywords to find related documents by filtering out unwanted words(use any of the available filters to do this).
You could also suggest some words(maybe 5,6,..) and use javascript to make something like the Wonder-wheel.
Have fun :)
其他提示
mindf
specifies the minimum document frequency, that is, the minimum number of documents that must include a term for that term to be counted.
For more info, see MoreLikeThis
不隶属于 StackOverflow