I would like to have ids of indexed documents auto-generated, but also, I want to know the id before I'll send the request. The id is generated in IndexRequest.process(...) method, so it doesn't work for me. Can I safely use
and set the id manually? I ask because I see a field "autoGeneratedTimestamp" that is also being set during default id generation, and its getter has a comment that it "will return a positive value if the id was auto generated". If I generate the ID manually, it won't be true. Can I ignore it? Or maybe there is an another solution?
PS. I use Elasticsearch 6.4.0 (server and library).