Class Engine.SearcherSupplier

java.lang.Object
org.elasticsearch.index.engine.Engine.SearcherSupplier
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.core.Releasable
Enclosing class:
Engine

public abstract static class Engine.SearcherSupplier extends Object implements org.elasticsearch.core.Releasable
  • Constructor Details

  • Method Details

    • acquireSearcher

      public final Engine.Searcher acquireSearcher(String source)
    • close

      public final void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable
    • doClose

      protected abstract void doClose()
    • acquireSearcherInternal

      protected abstract Engine.Searcher acquireSearcherInternal(String source)
    • getSearcherId

      @Nullable public String getSearcherId()
      Returns an id associated with this searcher if exists. Two searchers with the same searcher id must have identical Lucene level indices (i.e., identical segments with same docs using same doc-ids).