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

Distributed stats only calculates with the terms that are present in the last shard of the distributed request

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0, 5.1, 5.2, 5.2.1
    • Fix Version/s: 5.3
    • Component/s: None
    • Labels:
      None

      Description

      In ExactStatsCache#mergeToGlobalStats we go through the n responses and merge the termStats and colStats. But we keep putting the terms into the map which means only the last shard response terms will get used.

      This can lead to some terms not ending up calculating the distributed idf scores as the last shard might not have contained the term while the other shards actually had those terms.

        Attachments

        1. SOLR-7818.patch
          3 kB
          Varun Thacker
        2. SOLR-7818.patch
          5 kB
          Varun Thacker

          Activity

            People

            • Assignee:
              varunthacker Varun Thacker
              Reporter:
              varunthacker Varun Thacker
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: