You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ChadDavis <ch...@gmail.com> on 2008/11/10 21:07:16 UTC

autoCommit

The FAQ's have this index performance tip:

Use autoCommit=false when you open your IndexWriter
>
> In Lucene 2.3 there are substantial optimizations for Documents that use
> stored fields and term vectors, to save merging of these very large index
> files. You should see the best gains by using autoCommit=false for a single
> long-running session of IndexWriter. Note however that searchers will not
> see any of the changes flushed by this IndexWriter until it is closed; if
> that is important you should stick with autoCommit=true instead or
> periodically close and re-open the writer


But when I look at the API, there's no way to set autoCommit to false,
except via deprecated constrctors.

Is this tip deprecated?

Re: autoCommit

Posted by ChadDavis <ch...@gmail.com>.
That's easy.  Thanks.

On Mon, Nov 10, 2008 at 1:12 PM, Michael McCandless <
lucene@mikemccandless.com> wrote:

>
> Actually, all non-deprecated ctors of IndexWriter set autoCommit to false.
>  Ie, in 3.0 autoCommit false will become the only option.
>
> Mike
>
>
> ChadDavis wrote:
>
>  The FAQ's have this index performance tip:
>>
>> Use autoCommit=false when you open your IndexWriter
>>
>>>
>>> In Lucene 2.3 there are substantial optimizations for Documents that use
>>> stored fields and term vectors, to save merging of these very large index
>>> files. You should see the best gains by using autoCommit=false for a
>>> single
>>> long-running session of IndexWriter. Note however that searchers will not
>>> see any of the changes flushed by this IndexWriter until it is closed; if
>>> that is important you should stick with autoCommit=true instead or
>>> periodically close and re-open the writer
>>>
>>
>>
>> But when I look at the API, there's no way to set autoCommit to false,
>> except via deprecated constrctors.
>>
>> Is this tip deprecated?
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: autoCommit

Posted by Michael McCandless <lu...@mikemccandless.com>.
Actually, all non-deprecated ctors of IndexWriter set autoCommit to  
false.  Ie, in 3.0 autoCommit false will become the only option.

Mike

ChadDavis wrote:

> The FAQ's have this index performance tip:
>
> Use autoCommit=false when you open your IndexWriter
>>
>> In Lucene 2.3 there are substantial optimizations for Documents  
>> that use
>> stored fields and term vectors, to save merging of these very large  
>> index
>> files. You should see the best gains by using autoCommit=false for  
>> a single
>> long-running session of IndexWriter. Note however that searchers  
>> will not
>> see any of the changes flushed by this IndexWriter until it is  
>> closed; if
>> that is important you should stick with autoCommit=true instead or
>> periodically close and re-open the writer
>
>
> But when I look at the API, there's no way to set autoCommit to false,
> except via deprecated constrctors.
>
> Is this tip deprecated?


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org