[ 
https://issues.apache.org/jira/browse/SOLR-13961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16980520#comment-16980520
 ] 

Thomas Wöckinger commented on SOLR-13961:
-----------------------------------------

To have a consistent API unsetting nested documents should work the same as 
unsetting regular fields. For regular fields this is possible and also 
documented. 
 
>From 
>https://lucene.apache.org/solr/guide/8_3/updating-parts-of-documents.html#atomic-updates
 
{{set}}
Set or replace the field value(s) with the specified value(s), or remove the 
values if 'null' or empty list is specified as the new value.

May be specified as a single value, or as a list for multiValued fields.

> Unsetting Nested Documents using Atomic Update leads to SolrException: 
> undefined field
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-13961
>                 URL: https://issues.apache.org/jira/browse/SOLR-13961
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests, UpdateRequestProcessors
>    Affects Versions: master (9.0), 8.3, 8.4
>            Reporter: Thomas Wöckinger
>            Priority: Critical
>              Labels: easyfix
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Using null or empty collection to unset nested documents (as suggested by 
> documentation) leads to SolrException: undefined field ... .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to