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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: MoreLikeThis, SolrCloud
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                cbartolo Colin Bartolome
              • Votes:
                8 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated: