Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4501

MoreLikeThisComponent is misusing the mlt.count parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1
    • None
    • MoreLikeThis
    • None

    Description

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

      There is a call:

      NamedList<DocList> sim = getMoreLikeThese(rb, rb.req.getSearcher(), rb.getResults().docList, mltcount);
      

      The last argument (mltcount) is the number of similar documents to return for each result. However the signature of called method getMoreLikeThese is:

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

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kiril Kiril A.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: