In the example solrconfig.xml that comes with Solr, the autocommit section:

<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?

- 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?

- 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






      

Reply via email to