Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Id is not required for a Document. The search service can automatically create an identifier #8

Open
marcosvidolin opened this issue Sep 23, 2014 · 3 comments
Labels

Comments

@marcosvidolin
Copy link
Owner

Setting the document identifer is optional. If omitted, the search service will create an identifier.

@mohammedpithapurwalasc
Copy link

Any updates on this ? This would block us.

@tj-recess
Copy link
Collaborator

I'd argue that setting ID is rather useful. Could you explain your scenario a little?

Also, if you really don't want a meaningful id then you can work around by not annotating any field with @documentid and passing a UUID while creating document. e.g.

Document myDoc = doco.toDocument(myEntity, "some-random-id-here");

@mohammedpithapurwalasc
Copy link

Yes, the uuid approach is sufficient. What I wasn't sure of is whether there is a way to specify document id (without requiring an annotation).

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

No branches or pull requests

3 participants