mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
5a1fdc2a72
commit
af6b980c45
|
@ -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<STORE_INDEX_EXTENSIONS.length;i++)
|
||||
if (fileName.endsWith(STORE_INDEX_EXTENSIONS[i]))
|
||||
return true;
|
||||
|
|
|
@ -363,6 +363,7 @@ public class IndexWriter {
|
|||
*/
|
||||
public void setUseCompoundFile(boolean value) {
|
||||
getLogMergePolicy().setUseCompoundFile(value);
|
||||
getLogMergePolicy().setUseCompoundDocStore(value);
|
||||
}
|
||||
|
||||
/** Expert: Set the Similarity implementation used by this IndexWriter.
|
||||
|
|
Loading…
Reference in New Issue