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

known field's empty value can vanish via add-unknown-fields-to-the-schema updateRequestProcessorChain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      known field's empty value can vanish via add-unknown-fields-to-the-schema updateRequestProcessorChain

      This appears to be due to the "remove-blank" processor in the "add-unknown-fields-to-the-schema" process chain i.e. remove-blank applies to known as well as unknown fields (and when field guessing is disabled then remove-blank logic also stops).

      Technically there's nothing broken here but I'm wondering if remove-blank might be removed (no pun intended) from the _default configuration or if the

      WARNING: Using _default configset. Data driven schema functionality is enabled by default, which is NOT RECOMMENDED for production use.
      
      To turn it off:            
      curl http://localhost:8983/solr/collectionA/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}'
      

      wording might be revised somehow to better account for the remove-blank functionality?

      Attachments

        1. SOLR-11855.patch
          3 kB
          Christine Poerschke

        Activity

          People

            Unassigned Unassigned
            cpoerschke Christine Poerschke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: