Tigran
03/11/2023, 11:23 AMerror type: mapper_parsing_exception
reason: failed to parse field [_id] of type [_id] in document with id '015dd0d8-9f33-4ab1-966a-148163d35144'. Preview of field's value: 'zaLEs1gr6t'
at io.airbyte.integrations.destination.elasticsearch.ElasticsearchAirbyteMessageConsumerFactory.lambda$recordWriterFunction
It occurs even in the simplest cases where only a few fields are present in the source documents.Tigran
03/11/2023, 11:24 AMTigran
03/11/2023, 11:26 AMTigran
03/11/2023, 11:29 AMPetko Minkov
03/12/2023, 6:54 PM_id is not a field in elasticsearch, it's the id of the document.
A similar error is shown when trying to index a document like this:
POST /shops/_doc
{
"_id": "myid",
}
{
"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 'Q_4r14YB6S2dWM7xpyuE'. Preview of field's value: 'myid'",
"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
}Petko Minkov
03/12/2023, 6:55 PMPetko Minkov
03/12/2023, 6:57 PM_id to mongo_id, but no luck getting that to work yet.Petko Minkov
03/12/2023, 6:57 PM_id to a new field, but that won't be very convenient.Tigran
03/13/2023, 7:54 AMTigran
03/13/2023, 7:55 AMTigran
03/13/2023, 7:57 AMTigran
03/13/2023, 7:59 AMPetko Minkov
03/13/2023, 3:25 PMActivate the streams you want to sync