Class SeqNoFieldMapper

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

public class SeqNoFieldMapper
extends MetadataFieldMapper
Mapper for the _seq_no field. We expect to use the seq# for sorting, during collision checking and for doing range searches. Therefore the _seq_no field is stored both as a numeric doc value and as numeric indexed field. This mapper also manages the primary term field, which has no ES named equivalent. The primary term is only used during collision after receiving identical seq# values for two document copies. The primary term is stored as a doc value field without being indexed, since it is only intended for use as a key-value lookup.