Class FetchSourceContext

java.lang.Object
org.elasticsearch.search.fetch.subphase.FetchSourceContext
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class FetchSourceContext extends Object implements Writeable, ToXContentObject
Context used to fetch the _source. The exclude_vectors and exclude_inference_fields flags control whether vectors and inference fields metadata are rehydrated into the _source. By default, these are not included in the _source. The exclude_inference_fields flag defaults to the value of exclude_vectors at the REST layer, but it is exposed at the transport layer to allow internal APIs (such as reindex) to make more granular decisions.