Skip to content
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

Null id's on inner objects #61

Open
eduardofcgo opened this issue Feb 21, 2015 · 1 comment
Open

Null id's on inner objects #61

eduardofcgo opened this issue Feb 21, 2015 · 1 comment

Comments

@eduardofcgo
Copy link

Hello,
I'm starting now using the plugin, and I have now noticed that by default, nested objects get null id fields when indexing.
Using the samples as an example, in the Team object, the nested object Country gets an null id field after the document is indexed, even if the Country instance passed has an id field.
Is there any specific reason for this?
Any help is greatly appreciated.

@eduardofcgo eduardofcgo changed the title Null id's on nested objects Null id's on inner objects Feb 21, 2015
@eduardofcgo
Copy link
Author

Maybe I rushed into creating the issue; from my refreshed understanding, an id is only inherent to a document indexed, not to an object.
Assuming that I am right, it now seems that I need to implement my own id in java if I want to do something like: on updating a country object, update all the teams that have that country as an inner object. Am I right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant