Hey Ashish, If commit fails, the documents won't be indexed! You can look at your index by pointing luke <http://www.getopt.org/luke/> to your data folder (a Solr index is a Lucene index) or hit:
http://host:port/solr/admin/luke/ to get an xml reply of what your index looks like. You can commit again and there won't be any document duplicates as long as you are using a unique ID to identify each document. A same ID commit causes solr to overwrite/update any existing documents. But, I'm not sure what happens if commit fails halfway through a large document set! Would the docs that have already been committed stay or is commit an atomic op.....? Anshu On Wed, May 27, 2009 at 8:43 AM, Ashish P <ashish.ping...@gmail.com> wrote: > > Hi, > Any idea if documents from solr server are cleared even if commit fails or > I > can still again try commit after some time?? > Thanks, > Ashish > > > Ashish P wrote: > > > > If I add 10 document to solrServer as in solrServer.addIndex(docs) ( > Using > > Embedded ) and then I commit and commit fails for for some reason. Then > > can I retry this commit lets say after some time or the added documents > > are lost?? > > > > > > -- > View this message in context: > http://www.nabble.com/commit-question-tp23717415p23735301.html > Sent from the Solr - User mailing list archive at Nabble.com. > >