Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9995 refactor / cleanup PointFields code and overall asumptions about numerics
  3. SOLR-10438

schema-point.xml and TestPointFields have suspicious assumptions about useDocValuesAsStored

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.7, 7.0
    • None
    • None

    Description

      while working on SOLR-10425, i noticed that schema-point.xml, after defining many dynamicFields with docValues="true" (and no explicit mention of useDocValuesAsStored, then has a section with this comment...

         <!-- return DV fields as  -->
         <dynamicField name="*_p_i_dv_ns"  type="pint"    indexed="true"  stored="false" docValues="true" useDocValuesAsStored="true"/>
         <dynamicField name="*_p_l_dv_ns"  type="plong"    indexed="true"  stored="false" docValues="true" useDocValuesAsStored="true"/>
      ...
      

      The problem with this is that the schema version=1.6, so useDocValuesAsStored="true" is already the implicit default for all of the other docValue field types defined in this schema – making me skeptical of the efficacy of this test and any assumptions it has about wether useDocValuesAsStored is working properly (see also SOLR-10437)

      So we need to audit/clean-up this schema/test up to ensure that the effective value of useDocValuesAsStored is true if and only if the test code expects it to be true.

      Attachments

        1. SOLR-10438.patch
          10 kB
          Steven Rowe

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: