Yago Riveiro Rodríguez created SOLR-4338:
--------------------------------------------

             Summary: Atomic Updates on multi-valued fields giving unexpected 
results (again)
                 Key: SOLR-4338
                 URL: https://issues.apache.org/jira/browse/SOLR-4338
             Project: Solr
          Issue Type: Bug
         Environment: Solr 4.1, Mac OSX
            Reporter: Yago Riveiro Rodríguez


I have unexpected results using the add operator in an atomic update that makes 
more than 1 operation add in the same field.

The atomic update used was a json format string:

curl http://127.0.0.1:8983/solr/0212/update?commit=true -H 'Content-Type: 
application/json' -d '[{"id":"P2443582311", "metadata_tags":{"add":"visit"}, 
"metadata_tags":{"add":"deep_1"}}]'

The result of atomic update was:

curl http://127.0.0.1:8983/solr/0212/get?id=P2443582311
{
  "doc":
  {
    "id":"P2443582311",
    "metadata_tags":["{add=deep_1}",
      "{add=visit}"],
    "_version_":1424978534011502592
  }
}


--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to