-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Able to have different _id value than the one in the _source #5488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm sorry but I don't understand your question at all. Could you try explaining a bit more? |
Yes; sorry for the badly written issue. Elasticsearch always searches for an
I am working on adding elasticsearch as searching layer so I cannot keep the same structure both in MongoDB and ES. I either have to rename Generally if I could disable ES searching inside the document for an However this is a minor issue since can be solved in the webservice or end client. |
On v1.x, the What you could do with your current version is to map the _id field to use
I'll close this in favour of #5558 |
I have edited this issue since the previous was wrong.
Is it possible to have a different
_id
value in ES than the one inside the_source
? The following is a bulk action:If we give manually the
_id
ES not to search inside the source document.It would have been useful to cooperate with mongodb or generally if we want to have in the
_source
the field_id
.Relevant documentation: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-id-field.html#mapping-id-field
The text was updated successfully, but these errors were encountered: