By default, a commit won't return until a new searcher has been opened and the results are visible. So just make sure you wait for the commit command to return before querying.
Also, if you are committing every add, you can avoid a separate commit command by putting ?commit=true in the URL of the add command. -Yonik On Tue, May 13, 2008 at 9:31 AM, Alexander Ramos Jardim <[EMAIL PROTECTED]> wrote: > Maybe a delay in commit? How may time elapsed between commits? > > 2008/5/13 William Pierce <[EMAIL PROTECTED]>: > > > > > Hi, > > > > I am having problems with Solr 1.2 running tomcat version 6.0.16 (I also > > tried 6.0.14 but same problems exist). Here is the situation: I have an > > ASP.net application where I am trying to <add> and <commit> a single > > document to an index. After I add the document and issue the <commit /> I > > can see (in the solr stats page) that the commit count has been increment > > but the docsPending is 1, and my document is still not visible from a > > search perspective. > > > > When I issue another <commit/>, the commit counter increments, > > docsPending is now zero, and my document is visible and searchable. > > > > I saw that someone was observing problems with 6.0.16 tomcat, so I > > reverted back to 6.0.14. Same problem. > > > > Can anyone help? > > > > -- Bill > > > > > -- > Alexander Ramos Jardim >