You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating documents and setting their ID (eg. $doc->setAttribute('_id', 'foo')) is rejected as the ID is erroneously set on the request body in addition to the metadata field. This fails with the following error:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters."
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse field [_id] of type [_id] in document with id 'foo'. Preview of field's value: 'foo'",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters."
}
},
"status": 400
}
We should ensure to remove any metadata attributes from the request body here.
The text was updated successfully, but these errors were encountered:
Creating documents and setting their ID (eg.
$doc->setAttribute('_id', 'foo')
) is rejected as the ID is erroneously set on the request body in addition to the metadata field. This fails with the following error:We should ensure to remove any metadata attributes from the request body here.
The text was updated successfully, but these errors were encountered: