java.lang.Object
org.elasticsearch.search.fetch.subphase.FieldFetcher
A helper class to
FetchFieldsPhase
that's initialized with a list of field patterns to fetch.
Then given a specific document, it can retrieve the corresponding fields through their corresponding ValueFetcher
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldFetcher
create
(SearchExecutionContext context, Collection<FieldAndFormat> fieldAndFormats) fetch
(SourceLookup sourceLookup) void
setNextReader
(org.apache.lucene.index.LeafReaderContext readerContext)
-
Method Details
-
create
public static FieldFetcher create(SearchExecutionContext context, Collection<FieldAndFormat> fieldAndFormats) -
fetch
- Throws:
IOException
-
setNextReader
public void setNextReader(org.apache.lucene.index.LeafReaderContext readerContext)
-