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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to