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

Anurag Sharma commented on SOLR-6307:
-------------------------------------

Sorry I missed the last comment. With float I saw sometime it was truncating 
the value like 1111.666 to 1112 and look for removing 1112 so introduced 
parsing double before float. Both parsing can be done by introducing nested try 
and catch.

Independent of above another issue I saw in remove api is it is not giving any 
message if the element/collection deleted successfully or failed. Probably this 
will help the caller to know the current state otherwise the caller have to 
make another call to real time /get call on the id to know the state. Should we 
raise another issue for this?

> Atomic update remove does not work for int array or date array
> --------------------------------------------------------------
>
>                 Key: SOLR-6307
>                 URL: https://issues.apache.org/jira/browse/SOLR-6307
>             Project: Solr
>          Issue Type: Bug
>          Components: update
>    Affects Versions: 4.9
>            Reporter: Kun Xi
>            Assignee: Noble Paul
>              Labels: atomic, difficulty-medium, impact-medium
>             Fix For: 5.0, Trunk
>
>         Attachments: SOLR-6307.patch, SOLR-6307.patch, SOLR-6307.patch, 
> unitTests-6307.txt
>
>
> Try to remove an element in the string array with curl:
> {code}
> curl http://localhost:8080/update\?commit\=true -H 
> 'Content-type:application/json' -d '[{ "attr_birth_year_is": { "remove": 
> [1960]},  "id": 1098}]'
> curl http://localhost:8080/update\?commit\=true -H 
> 'Content-type:application/json' -d '[{"reserved_on_dates_dts": {"remove": 
> ["2014-02-12T12:00:00Z", "2014-07-16T12:00:00Z", "2014-02-15T12:00:00Z", 
> "2014-02-21T12:00:00Z"]}, "id": 1098}]'
> {code}
> Neither of them works.
> The set and add operation for int array works. 
> The set, remove, and  add operation for string array works



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to