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 ValueFetchers.-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldFetchercreate(SearchExecutionContext context, Collection<FieldAndFormat> fieldAndFormats) fetch(SourceLookup sourceLookup) voidsetNextReader(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)
-