You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kiril A. (JIRA)" <ji...@apache.org> on 2013/02/25 16:24:13 UTC

[jira] [Created] (SOLR-4501) MoreLikeThisComponent is misusing the mlt.count parameter

Kiril A. created SOLR-4501:
------------------------------

             Summary: MoreLikeThisComponent is misusing the mlt.count parameter
                 Key: SOLR-4501
                 URL: https://issues.apache.org/jira/browse/SOLR-4501
             Project: Solr
          Issue Type: Bug
          Components: MoreLikeThis
    Affects Versions: 4.1
            Reporter: Kiril A.


Probably there is a bug on line 144 of MoreLikeThisComponent.java method process()

There is a call:
{code}
NamedList<DocList> sim = getMoreLikeThese(rb, rb.req.getSearcher(), rb.getResults().docList, mltcount);
{code}
The last argument (mltcount) is the number of similar documents to return for each result. However the signature of called method getMoreLikeThese is:

{code}
NamedList<DocList> getMoreLikeThese(ResponseBuilder rb,SolrIndexSearcher searcher, DocList docs, int flags) 
{code}

The last argument is the flags - which should contains values like SolrIndexSearcher.GET_SCORES and etc.

Please, could some developers confirm if this is a bug?


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org