From af6b980c457abf2f96cbabb6d952e80ba5d70088 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 5 Oct 2007 10:18:06 +0000 Subject: [PATCH] LUCENE-1009: missed one file in the 'merge slowdown' fix causing it to still be slow when compound doc stores are used; also fixed default for comopund doc store = compound doc file format git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582193 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/index/IndexFileNames.java | 2 ++ src/java/org/apache/lucene/index/IndexWriter.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/java/org/apache/lucene/index/IndexFileNames.java b/src/java/org/apache/lucene/index/IndexFileNames.java index 4c7cdbac165..6e01228c598 100644 --- a/src/java/org/apache/lucene/index/IndexFileNames.java +++ b/src/java/org/apache/lucene/index/IndexFileNames.java @@ -189,6 +189,8 @@ final class IndexFileNames { * STORE_INDEX_EXTENSIONS). */ static final boolean isDocStoreFile(String fileName) { + if (fileName.endsWith(COMPOUND_FILE_STORE_EXTENSION)) + return true; for(int i=0;i