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

Using atomic updates to remove docValues type dynamic field does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.6.2, 7.2
    • Fix Version/s: 8.2
    • Component/s: update
    • Labels:
      None

      Description

      I have defined a dynamic field which is stored=false, indexed=false and docValues=true. Attempting to set this field's value to null via atomic update does not remove the field from the document. However, the document's version is updated. Using atomic updates to set a value for the field does work. Tested on 6.6.2 and 7.2.1. 

      An example of a non-working update query:

      <update>
          <add>
              <doc>
                  <field name="id">372335</field>
                  <field name="removed_field_262884_i_dv" update="set" null="true"/>
              </doc>
          </add>
      </update>
      

       

      An example of a working update query:

      <update>
          <add>
              <doc>
                  <field name="id">372335</field>
                  <field name="removed_field_262884_i_dv" update="set">1521472499</field>
              </doc>
          </add>
      </update>
      

        Attachments

        1. SOLR-12127.patch
          1 kB
          Munendra S N
        2. SOLR-12127.patch
          5 kB
          Munendra S N
        3. SOLR-12127.patch
          5 kB
          Munendra S N
        4. SOLR-12127.patch
          6 kB
          Munendra S N

          Issue Links

            Activity

              People

              • Assignee:
                munendrasn Munendra S N
                Reporter:
                oliverkuldmae Oliver Kuldmäe
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: