Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class IndexWriter.IndexReaderWarmer

    If 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.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    NOTE: Warm(AtomicReader) is called before any deletes have been carried over to the merged segment.

    Inheritance
    System.Object
    IndexWriter.IndexReaderWarmer
    SimpleMergedSegmentWarmer
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class IndexReaderWarmer

    Constructors

    | Improve this Doc View Source

    IndexReaderWarmer()

    Sole constructor. (For invocation by subclass constructors, typically implicit.)

    Declaration
    protected IndexReaderWarmer()

    Methods

    | Improve this Doc View Source

    Warm(AtomicReader)

    Invoked on the AtomicReader for the newly merged segment, before that segment is made visible to near-real-time readers.

    Declaration
    public abstract void Warm(AtomicReader reader)
    Parameters
    Type Name Description
    AtomicReader reader
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.