lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: new segment for each document
Date Thu, 10 Feb 2005 22:07:00 GMT
Daniel Naber wrote:
> On Thursday 10 February 2005 22:27, Ravi wrote:
>> I tried setting the minMergeFactor on the writer to one. But
>>it did not work.
> 
> I think there's an off-by-one bug so two is the smallest value that works 
> as expected.

You can simply create a new IndexWriter for each add and then close it. 
  IndexWriter is pretty lightweight, so this shouldn't have too much 
overhead.

Doug

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


Mime
View raw message