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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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
          6 kB
          Tomás Fernández Löbbe
        2. SOLR-10237.patch
          12 kB
          Tomás Fernández Löbbe
        3. SOLR-10237.patch
          14 kB
          Tomás Fernández Löbbe

          Activity

            People

            • Assignee:
              tomasflobbe Tomás Fernández Löbbe
              Reporter:
              tomasflobbe Tomás Fernández Löbbe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: