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

Cannot "set" field to null with partial updates when using the standard RequestWriter.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • clients - java, update
    • None

    Description

      I would like to "unset" a field using partial updates like so:

      doc.setField(field, singletonMap("set", null));
      

      When I attempt to add this document using the standard XML-based RequestWriter, this update is ignored. It works properly when using the BinaryRequestWriter.

      Attachments

        1. SOLR-4133.patch
          3 kB
          Shalin Shekhar Mangar

        Activity

          People

            shalin Shalin Shekhar Mangar
            willbutler Will Butler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: