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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: clients - java, update
    • Labels:
      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

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              willbutler Will Butler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: