Class InferenceFieldMetadata

java.lang.Object
org.elasticsearch.cluster.metadata.InferenceFieldMetadata
All Implemented Interfaces:
Diffable<InferenceFieldMetadata>, SimpleDiffable<InferenceFieldMetadata>, Writeable, ToXContent, ToXContentFragment

public final class InferenceFieldMetadata extends Object implements SimpleDiffable<InferenceFieldMetadata>, ToXContentFragment
Contains inference field data for fields. As inference is done in the coordinator node to avoid re-doing it at shard / replica level, the coordinator needs to check for the need to perform inference for specific fields in an index. Given that the coordinator node does not necessarily have mapping information for all indices (only for those that have shards in the node), the field inference information must be stored in the IndexMetadata and broadcasted to all nodes.