Class FieldFetcher
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 from the document's source.-
Constructor Summary
ConstructorDescriptionFieldFetcher
(Map<String, org.elasticsearch.search.fetch.subphase.FieldFetcher.FieldContext> fieldContexts, org.apache.lucene.util.automaton.CharacterRunAutomaton unmappedFieldsFetchAutomaton, List<String> unmappedConcreteFields) -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldFetcher
create
(SearchExecutionContext context, Collection<FieldAndFormat> fieldAndFormats) fetch
(SourceLookup sourceLookup) void
setNextReader
(org.apache.lucene.index.LeafReaderContext readerContext)
-
Constructor Details
-
FieldFetcher
-
-
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)
-