Class MetaJoinFieldMapper

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<Mapper>, ToXContent, ToXContentFragment

    public class MetaJoinFieldMapper
    extends FieldMapper
    Simple field mapper hack to ensure that there is a one and only ParentJoinFieldMapper per mapping. This field mapper is not used to index or query any data, it is used as a marker in the mapping that denotes the presence of a parent-join field and forbids the addition of any additional ones. This class is also used to quickly retrieve the parent-join field defined in a mapping without specifying the name of the field.