public abstract static class IndexWriter.IndexReaderWarmer extends Object
DirectoryReader.open(IndexWriter)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.
NOTE: warm is called before any deletes have been carried over to the merged segment.
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
Invoked on the
public abstract void warm(LeafReader reader) throws IOException
LeafReaderfor the newly merged segment, before that segment is made visible to near-real-time readers.
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.