Hi all, In one of our integration test we do the following:
1. create an index 2. put some docs in the created index 3. assert that documents exist in index Step 3 sometimes fails if we don't put a Thread.sleep(1000) between 2 and 3. After reading the docs, I think performing a FlushRequest might help: client.admin().indices().flush(new FlushRequest(indexName)).actionGet(); My question is: are all changes commited when receiving the response of the flush request or is flush request performed in an asynchrounus manner? Regards, Abid -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4dcb667c-2ab5-4457-85ff-70327e520c43%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
