public final class IndexWriterMaxDocsChanger extends Object
IndexWriter available for testing.| Modifier and Type | Method and Description |
|---|---|
static void |
restoreMaxDocs()
Returns to the default
IndexWriter.MAX_DOCS limit. |
static void |
setMaxDocs(int limit)
Tells
IndexWriter to enforce the specified limit as the maximum number of documents in one index; call
restoreMaxDocs() once your test is done. |
public static void setMaxDocs(int limit)
IndexWriter to enforce the specified limit as the maximum number of documents in one index; call
restoreMaxDocs() once your test is done.public static void restoreMaxDocs()
IndexWriter.MAX_DOCS limit.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.