If I follow things correctly, I think you should be seeing new documents only after the commit is done and the new index searcher is open and available for search. If you are searching before the new searcher is available, you are probably still hitting the old searcher.
Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Reeza Edah Tally <re...@nova-hub.com> > To: solr-user@lucene.apache.org > Sent: Tue, April 12, 2011 9:25:59 AM > Subject: Searching during postcommit > > Hi, > > > > I have been trying to perform a search using a CommonsHttpSolrServer when my > postCommit event listener is called. > > I am not able to find the documents just commited; the "post" in postCommit > caused me to assume that I would; it seems that the commit only takes effect > when all postCommit have returned. > > > > Am I missing something or is there another way I can do this? > > > > Thanks, > > Reeza > >