When I try to index two similar documents (in my case, these are customers) with the same id and a different routing id, I get the first document is created, but the second document is updated.
As I know, I can index two similar documents with different routing id.
Here is my mapping:
{
"estimate-index": {
"mappings": {
"_routing": {
"required": true
},
"properties": {
"id": {
"type": "keyword"
},
"joinField": {
"type": "join",
"eager_global_ordinals": true,
"relations": {
"estimate": [
"customer"
]
}
},
"name": {
"type": "text"
},
"number": {
"type": "text"
},
"parent": {
"type": "integer"
}
}
}
}
}