lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: Setting the maximum number of documents in a lucene segment
Date Fri, 25 May 2007 12:40:26 GMT

> 
> Hello,
> 
> I am trying to change the maximum number of documents in a 
> lucene segment. By default it seems to be 10.

Correction: 10 for the smallest (just created) segments of course, because obviously merged
segments are likely to contain many more documents

> When I have a 
> mergeFactor of say 10, then on average, after every 100 added 
> documents lucene is merging segments.
> 
> I want each segment to contain more then the default 10 
> documents, because I need to minimize merging.
> 
> Is there a way to achieve this? 
> writer.setMaxBufferedDocs(largeValue) does not do the trick 
> (I think because in my case because the writer is flushed and 
> closed after an few updates)
> 
> Does anyone know wether it is possible to make the default 
> number of documents a segment can contain larger?
> 
> Thanks in advance, 
> 
> Ard Schrijvers
> 
> 
> -- 
> 
> Hippo
> Oosteinde 11
> 1017WT Amsterdam
> The Netherlands
> Tel  +31 (0)20 5224466
> -------------------------------------------------------------
> a.schrijvers@hippo.nl / http://www.hippo.nl
> -------------------------------------------------------------- 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 

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


Mime
View raw message