Sage-Bionetworks/Synapse-Repository-Services — pull request #72 by eric-wu (2012-08-17 00:10:19+00:00)
Title: Remove the lang field from the delete SDF

Sending the request below to CloudSearch will get a warning in the response. Note the "lang" field in the SDF. CloudSearch documentation does not list the "lang" field either. I am removing it from the SDF.

==================================================

REQUEST:

[
{
"id": "syn105225",
"lang": "en",
"type": "delete",
"version": 1345155661
},
{
"id": "syn105222",
"lang": "en",
"type": "delete",
"version": 1345155661
}
]

RESPONSE:

{
"status": "success",
"warnings": [
{
"message": "\"delete\" has unknown attribute(s): ['lang'] (near operation with index 1; document_id syn105225)"
},
{
"message": "\"delete\" has unknown attribute(s): ['lang'] (near operation with index 2; document_id syn105222)"
}
],
"adds": 0,
"deletes": 2
}