Hi all,
I have two updatebyquery like this one.
UpdateByQueryRequestBuilder ubqrb = UpdateByQueryAction.INSTANCE.newRequestBuilder(client);
ubqrb.source(index).source().setTypes(itemType);
BulkIndexByScrollResponse response = ubqrb.setSlices(2).setRequestsPerSecond(100000F)
.setMaxRetries(1000).abortOnVersionConflict(false).script(actualScript)
.filter(query)
.refresh(true).get();
the second one's response contains version conflicts. if I wait few seconds between both, I got a coherent result without version conflict. Is there a better way to do this or a refresh that make the updates of the first query visible.
Thx for your help.