Class FieldFetcher

java.lang.Object
org.elasticsearch.search.fetch.subphase.FieldFetcher

public class FieldFetcher
extends java.lang.Object
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.
  • Method Summary

    Modifier and Type Method Description
    static FieldFetcher create​(MapperService mapperService, SearchLookup searchLookup, java.util.Collection<FieldAndFormat> fieldAndFormats)  
    java.util.Map<java.lang.String,​DocumentField> fetch​(SourceLookup sourceLookup, java.util.Set<java.lang.String> ignoredFields)  
    void setNextReader​(org.apache.lucene.index.LeafReaderContext readerContext)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait