Changed the default index format to be compound.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Cutting 2004-03-24 18:10:59 +00:00
parent 76bd7d9b29
commit f19a63217d
2 changed files with 8 additions and 3 deletions

View File

@ -75,6 +75,10 @@ $Id$
http://issues.apache.org/bugzilla/show_bug.cgi?id=27491
(Morus Walter via Otis)
14. Changed so that the compound index format is used by default.
This makes indexing a bit slower, but vastly reduces the chances
of file handle problems. (Cutting)
1.3 final

View File

@ -112,10 +112,11 @@ public class IndexWriter {
private Lock writeLock;
/** Use compound file setting. Defaults to false to maintain multiple files
* per segment behavior.
/** Use compound file setting. Defaults to true, minimizing the number of
* files used. Setting this to false may improve indexing performance, but
* may also cause file handle problems.
*/
private boolean useCompoundFile = false;
private boolean useCompoundFile = true;
/** Setting to turn on usage of a compound file. When on, multiple files