set compound format, regardless of create flag

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2004-08-05 14:32:28 +00:00
parent 6cf6840201
commit 6dfd88a659
1 changed files with 2 additions and 3 deletions

View File

@ -245,9 +245,7 @@ public class IndexTask extends Task {
IndexWriter writer =
new IndexWriter(indexDir, analyzer, create);
if (create && useCompoundIndex) {
writer.setUseCompoundFile(useCompoundIndex);
}
writer.setUseCompoundFile(useCompoundIndex);
int totalFiles = 0;
int totalIndexed = 0;
int totalIgnored = 0;
@ -292,6 +290,7 @@ public class IndexTask extends Task {
if (indexModified != null) {
if (DateField.stringToTime(indexModified)
== file.lastModified()) {
// TODO: remove existing document
indexIt = false;
}
}