Module org.elasticsearch.server
Class UnmappedFieldFetcher
java.lang.Object
org.elasticsearch.search.fetch.subphase.UnmappedFieldFetcher
Class to fetch all unmapped fields from a Source that match a set of patterns
Takes a set of mapped fields to ignore when matching, which should include
any nested mappers.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectUnmapped
(Map<String, DocumentField> documentFields, Source source) Collect unmapped fields from a Source
-
Field Details
-
EMPTY
-
-
Constructor Details
-
UnmappedFieldFetcher
public UnmappedFieldFetcher(Set<String> mappedFields, List<String> nestedChildren, List<String> unmappedFetchPatterns) Builds an UnmappedFieldFetcher- Parameters:
mappedFields
- a set of fields to ignore when iterating through the mapunmappedFetchPatterns
- a set of patterns to match unmapped fields in the source against
-
-
Method Details
-
collectUnmapped
Collect unmapped fields from a Source- Parameters:
documentFields
- a map to receive unmapped field values as DocumentFieldssource
- the Source
-