Hello,
I could find no mention of version control when using the Elasticsearch backend. Does Hibernate Search use any version checks when indexing documents? If there is version control, how are conflicts resolved? Elasticsearch supports the 'version' and 'version_type' parameter when indexing to either use optimistic concurrency control or rely on an external version number.
I am asking because I am a little worried that concurrent threads updating the same document in separate transactions can easily overwrite each other, leading to missing updates to the index. Also, if in a single transaction there are multiple updates performed on a document, are those updates merged into one update request when building the batch request to Elasticsearch?
Keep in mind that I aim to use asynchronous worker execution to minimise performance impact.
Thank you in advance!
|