public abstract static class IndexWriter.IndexReaderWarmer
extends java.lang.Object
DirectoryReader.open(IndexWriter,boolean) has
been called (ie, this writer is in near real-time
mode), then after a merge completes, this class can be
invoked to warm the reader on the newly merged
segment, before the merge commits. This is not
required for near real-time search, but will reduce
search latency on opening a new near real-time reader
after a merge completes.| Modifier and Type | Method and Description |
|---|---|
abstract void |
warm(AtomicReader reader)
Invoked on the
AtomicReader for the newly
merged segment, before that segment is made visible
to near-real-time readers. |
public abstract void warm(AtomicReader reader) throws java.io.IOException
AtomicReader for the newly
merged segment, before that segment is made visible
to near-real-time readers.java.io.IOExceptionCopyright © 2010 - 2024 Adobe. All Rights Reserved