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

MoreLikeThis on a shard finds no interesting terms if the document queried is not in that shard

    XMLWordPrintableJSON

Details

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

    Description

      Running a MoreLikeThis query in a cloud works only when the document being queried exists in whatever shard serves the request. If the document is not present in the shard, no "interesting terms" are found and, consequently, no matches are found.

      Steps to reproduce
      • Edit example/solr/collection1/conf/solrconfig.xml and add this line, with the rest of the request handlers:
      <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
      

      The former URL will return a result and list some interesting terms. The latter URL will return no results and list no interesting terms. It will also show this odd XML element:

      <null name="response"/>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cbartolo Colin Bartolome
              Votes:
              7 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: