[ 
https://issues.apache.org/jira/browse/SOLR-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar updated SOLR-4133:
----------------------------------------

    Attachment: SOLR-4133.patch

Test and fix attached.

For null values, the xml looks like this:
{code}
<field name="multi_ss" update="set" null="true"/>
{code}

Null is not a new attribute. The XML unmarshalling code (XMLLoader.java) 
already had support for this attribute but it was never actually written by the 
marshalling code (ClientUtils.java)
                
> Cannot "set" field to null with partial updates when using the standard 
> RequestWriter.
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-4133
>                 URL: https://issues.apache.org/jira/browse/SOLR-4133
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java, update
>    Affects Versions: 4.0
>            Reporter: Will Butler
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>         Attachments: SOLR-4133.patch
>
>
> I would like to "unset" a field using partial updates like so:
> \\
> \\
> {code}
> doc.setField(field, singletonMap("set", null));
> {code}
> When I attempt to add this document using the standard XML-based 
> RequestWriter, this update is ignored. It works properly when using the 
> BinaryRequestWriter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to