Dear Markus, Hi, Thank you very much for your response. I did check the reason why it is not recommended to filter by score in search query. But I think it is reasonable to filter by score in case of finding similar documents. I know in both of them (simple search query and mlt query) vsm of tf-idf similarity is used to calculate the score of documents, but suppose you indexed news as document in solr and you want to find all enough similar news for the specific one. In this case I think it is reasonable to filter similar documents by score threshold. Please correct me if I am wrong. Thank you very much. Regards. On Feb 3, 2015 7:00 PM, "Markus Jelsma" <markus.jel...@openindex.io> wrote:
> Hi - sure you can, using the frange parser as a filter: > > > https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-FunctionRangeQueryParser > > http://lucene.apache.org/solr/4_10_3/solr-core/org/apache/solr/search/FunctionRangeQParserPlugin.html > > But this is very much not recommended, at all, so don't do it: > > https://wiki.apache.org/lucene-java/LuceneFAQ#Can_I_filter_by_score.3F > > -----Original message----- > > From:Ali Nazemian <alinazem...@gmail.com> > > Sent: Tuesday 3rd February 2015 16:22 > > To: solr-user@lucene.apache.org > > Subject: MoreLikeThis filter by score threshold > > > > Hi, > > I was wondering how can I limit the result of MoreLikeThis query by the > > score value instead of filtering them by document count? > > Thank you very much. > > > > -- > > A.Nazemian > > >