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

JSON Field Facet refinement can return incorrect counts/stats for sorted buckets -- when using processEmpty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Facet Module
    • None

    Description

      Creating this spin off of SOLR-12343 - the fix in that issue addresses the most common cases, but does not help when processEmpty:true is used...

      in getRefinement() you've got returnedAllBuckets taking into consideration processEmpty:true - so that even if a shardA doesn't say it has more:true we will still send it candidate bucketX for refinement if we didn't explicitly saw bucketX on shardA. so far so good.

      but then, once all the refinement is done, and we have a fully refined bucketX it might now sort "lower" then an incomplete bucketY ... and isBucketComplete doesn't pay any attention to processEmpty:true ... so it sees that shardA does not have more:true and thinks (the incomplete) bucketY is ok to return.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: