-
Notifications
You must be signed in to change notification settings - Fork 1.3k
error while mapping _source.id #1764
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
can you provide an example Elasticsearch document and an entity class showing which fields you want to map to which property, and what should be the id for the entity? btw, Spring Data Elasticsearch has nothing to do with JPA. |
|
please check #1680 (comment) |
I implemented it this way, and I had this error:
I'm using version 4.1.7 |
The change from |
version 4.2.0 was released a couple of days ago, with this version you can use the definitions from above. |
I need to map the
id
field inside the elasticsearch_source
field.However, in all my attempts, the JPA parse returns the
_id
field to me.as I have tens of millions of records in ES and it is not possible to arrive and go through all the docs correcting the name of the
id
field by another. So I need an option to map it, as it differs from the_id
field.The text was updated successfully, but these errors were encountered: