lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <s...@elyograg.org>
Subject Re: why solr commit with serval docs
Date Fri, 01 Aug 2014 14:58:17 GMT
On 8/1/2014 3:22 AM, rulinma wrote:
> I use solrconfig.xml as follow:  
> <updateHandler class="solr.DirectUpdateHandler2">
>     <updateLog>
>       <str name="dir">${solr.ulog.dir:}</str>
>     </updateLog>
>     <autoCommit> 
>       <maxTime>15000</maxTime> 
> 	  <maxDocs>5000</maxDocs>
>       <openSearcher>false</openSearcher> 
>     </autoCommit>
>     <autoSoftCommit> 
>        <maxTime>3600000</maxTime> 
> 	   <maxDocs>500000</maxDocs>
>     </autoSoftCommit>
>   </updateHandler>
>
> I use 2000 docs to commit once, but I query find that 2002,2003,2004 and so
> on, not 2000,4000,6000 increase. I don't know why?
> who can tell me ?

I cannot say for sure, but I would guess that the commit action is
initiated when the threshold is crossed ... but that it is not an atomic
operation that stops indexing right at that moment.  I bet that it takes
a few microseconds or milliseconds for the commit to begin, and in the
meantime, a few more documents get indexed.

Thanks,
Shawn


Mime
View raw message