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) Build a FieldFetcher for a given search context and collection of fields and formatsvoidsetNextReader(org.apache.lucene.index.LeafReaderContext readerContext)
-
Method Details
-
create
public static FieldFetcher create(SearchExecutionContext context, Collection<FieldAndFormat> fieldAndFormats) Build a FieldFetcher for a given search context and collection of fields and formats -
storedFieldsSpec
-
fetch
- Throws:
IOException
-
setNextReader
public void setNextReader(org.apache.lucene.index.LeafReaderContext readerContext)
-