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.Searcher
acquireSearcher
(String source) protected abstract Engine.Searcher
acquireSearcherInternal
(String source) final 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 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).
-