mirror of https://github.com/apache/lucene.git
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:
parent
6cf6840201
commit
6dfd88a659
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue