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
-
Method Summary
Modifier and TypeMethodDescriptionacquireSearcher(String source)
protected abstract Engine.Searcher
acquireSearcherInternal(String source)
void
close()
protected abstract void
doClose()
Returns an id associated with this searcher if exists.
-
Constructor Details
-
SearcherSupplier
-
-
Method Details
-
acquireSearcher
-
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in 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).
-