Class FieldStorageVerifier

java.lang.Object
org.elasticsearch.index.mapper.FieldStorageVerifier

public class FieldStorageVerifier extends Object
Utility class for verifying that fields are stored exactly where we expect them to. This helps identify when we're double storing.

A field's value can be stored in multiple ways:

  • STORED_FIELD - Lucene stored field
  • DOC_VALUES - Doc values
  • IGNORED_SOURCE - Stored in _ignored_source

Internally, the verifier checks both the primary field name and the fallback field (fieldName._original), and fails if the field is stored at unexpected locations.