Package org.elasticsearch.index.engine
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireSearcher(String source)protected abstract Engine.SearcheracquireSearcherInternal(String source)voidclose()protected abstract voiddoClose()Returns an id associated with this searcher if exists.
-
Constructor Details
-
SearcherSupplier
-
-
Method Details
-
acquireSearcher
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
doClose
protected abstract void doClose() -
acquireSearcherInternal
-
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).
-