Bernardo Botella created SOLR-6628:
--------------------------------------
Summary: Atomic updates delete content field
Key: SOLR-6628
URL: https://issues.apache.org/jira/browse/SOLR-6628
Project: Solr
Issue Type: Bug
Components: Build
Affects Versions: 4.10
Environment: Localhost under Jetty version 9.2.1.v20140609
Reporter: Bernardo Botella
Let's say we have an indexed document provided by Tika contrib package:
{code:xml}
{
"id": "some_id",
"content_type": [
"text/html; charset=utf-8"
],
"language": "en",
"title": [
"some title"
],
"content": [
"some content"
],
"_version_": some_version
}
{code}
Now, I want to add a field with an atomic update using curl from terminal
{code}
curl -s 'http://solr_ip:8080/solr/update' -H 'Content-type:application/json' -d
'[{"id":"some_id","1986_i":{"set":2}}]'
{code}
The result document is:
{code:xml}
{
"id": "some_id",
"content_type": [
"text/html; charset=utf-8"
],
"language": "en",
"title": [
"some title"
],
"1986_i": 2,
"_version_": other_version
}
{code}
The content field is missing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]