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

Poly-Fields should work with subfield that have docValues=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.5, 7.0
    • None
    • None

    Description

      DocValues aren’t really supported in poly-fields at this point, but they don’t complain if the schema definition of the subfield has docValues=true. This leaves the index in an inconsistent state, since the SchemaField has docValues=true but there are no DV for the field.
      Since this breaks compatibility, I think we should just emit a warning unless the subfield is an instance of PointField. With [Int/Long/Float/Double/Date]PointField subfields, this is particularly important, since they use IndexOrDocValuesQuery, that would return incorrect results.

      Attachments

        1. SOLR-10237.patch
          14 kB
          Tomas Eduardo Fernandez Lobbe
        2. SOLR-10237.patch
          12 kB
          Tomas Eduardo Fernandez Lobbe
        3. SOLR-10237.patch
          6 kB
          Tomas Eduardo Fernandez Lobbe

        Activity

          People

            tflobbe Tomas Eduardo Fernandez Lobbe
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: