Thanks Mitch. How do I do an explicit commit?
Andy --- On Sun, 9/26/10, MitchK <mitc...@web.de> wrote: > From: MitchK <mitc...@web.de> > Subject: Re: questions about autocommit & committing documents > To: solr-user@lucene.apache.org > Date: Sunday, September 26, 2010, 4:13 AM > > Hi Andy, > > > Andy-152 wrote: > > > > <autoCommit> > > <maxDocs>10000</maxDocs> > > <maxTime>1000</maxTime> > > </autoCommit> > > > > has been commented out. > > > > - With <autoCommit> commented out, does it mean > that every new document > > indexed to Solr is being auto-committed individually? > Or that they are not > > being auto-committed at all? > > > I am not sure, whether there is a default value, but if > not, commenting out > would mean that you have to send a commit explicitly. > > > > > - If I enable <autoCommit> and set > <maxDocs> at 10000, does it mean that > > my new documents won't be avalable for searching until > 10,000 new > > documents have been added? > > > Yes, that's correct. However, you can do a commit > explicitly, if you want to > do so. > > > > > - When I add a new document to Solr, do I need to call > commit explicitly? > > If so, how do I do that? > > I look at the Solr tutorial ( > > http://lucene.apache.org/solr/tutorial.html), the > command used to index > > documents (java -jar post.jar solr.xml monitor.xml) > doesn't include any > > explicit call to commit the documents. So I'm not sure > if it's necessary. > > > > Thanks > > > Committing is necessary, since every added document is not > visible at > query-time, if there was no commit to it. > > Kind regards, > Mitch > -- > View this message in context: > http://lucene.472066.n3.nabble.com/questions-about-autocommit-committing-documents-tp1582487p1582676.html > Sent from the Solr - User mailing list archive at > Nabble.com. >