Hi; I run Solr within my Test Suite. I delete documents or atomically update them and check whether if it works or not. I know that I have to setup a hard/soft commit timing for my test Solr. However even I have that settings:
<autoCommit> <maxTime>1</maxTime> <openSearcher>true</openSearcher> </autoCommit> <autoSoftCommit> <maxTime>1</maxTime> </autoSoftCommit> and even I wait (Thread.sleep()) for a time to wait Solr *sometimes* my tests are failed. I get fail error even I increase wait time. Example of a sometimes failed code piece: for (int i = 0; i < dummyDocumentSize; i++) { deleteById("id" + i); dummyDocumentSize--; queryResponse = query(solrParams); assertTrue(queryResponse.getResults().size() == dummyDocumentSize); } at debug mode if I wait for Solr to reflect changes I see that I do not get error. What do you think, what kind of configuration I should have for such kind of purposes? Thanks; Furkan KAMACI