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

ExpandComponent treats all docs with '0' in a numeric collapse field the same as if null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0, 8.9
    • None
    • None

    Description

      ExpandComponent has an equivalent to the collapse qparser bug tracked in SOLR-15047...

      ...has some very, very, old code/semantics in it that date back to when the FieldCache was incapable of differentiating between a document that contained '0' in the field being un-inverted, and a document that didn't have any value in that field.

      This limitation does not exist in DocValues (nor has it existed for a long time) but as the DocValues API has evolved, and as the [...] code has been updated to take advantage of the newer APIs that make it obvious when a document has no value in a field, the [...] code still explicitly equates "0" in a numeric field with the "null group"

       

      Attachments

        1. SOLR-15078.patch
          48 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: