Module org.elasticsearch.server
Package org.elasticsearch.index.engine
Class Engine.SearcherSupplier
java.lang.Object
org.elasticsearch.index.engine.Engine.SearcherSupplier
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
- Enclosing class:
Engine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Engine.SearcheracquireSearcher(String source) protected abstract Engine.SearcheracquireSearcherInternal(String source) final 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 interfaceReleasable
-
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).
-