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

Do not use docValues as stored for _str (copy)fields in _default configset

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5, 8.0
    • Component/s: Data-driven Schema
    • Labels:
      None

      Description

      When improving data-driven mode in SOLR-9526 we discussed back and forth whether to set useDocValuesAsStored for the *_str copy of text fields. This dynamic field is currently defined as

      <dynamicField name="*_str" type="strings" stored="false" docValues="true" indexed="false" />

      Having lived with the current setting since 7.0, I think it is too noisy to return all the _str fields since this is redundant content from the analysed original field. Thus I propose to do as Hoss Man initially suggested, and explicitly set it to false starting from 7.4:

      <dynamicField name="*_str" type="strings" stored="false" indexed="false" docValues="true" useDocValuesAsStored="false" />
      

      Note that this does not change how things are stored, only whether to display these by default. The *_str fields will still be available for sorting, faceting etc.

        Attachments

        1. SOLR-12350.patch
          4 kB
          Jan Høydahl
        2. SOLR-12350.patch
          4 kB
          Jan Høydahl

          Activity

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              janhoy Jan Høydahl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: