lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Lucene Benchmarks and Information
Date Fri, 20 Dec 2002 19:26:10 GMT
petite_abeille wrote:
> On Friday, Dec 20, 2002, at 19:58 Europe/Zurich, Scott Ganyo wrote:
>> FYI: The best thing I've found for both increasing speed and reducing 
>> file handles is to use an IndexWriter on a RamDirectory for indexing 
>> and then use FileWriter.addIndexes() to write the result to disk.  
>> This is subject to the amount of memory you have available, of course...
> I do follow this strategy and it seems to work nicely... however it 
> might be not enough :-( Another factor to consider is how homogeneous 
> are your indexes: the more documents are alike the better. I tried a 
> wide spectrum of combination and I settled on using one index per class 
> of documents. This seems to work best for me as far as file handles go. 

Each indexed field adds a file per segment.  So, if you want to conserve 
file handles, use fewer indexed fields per index, and/or use multiple 
indexes, as you have done.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message