Package org.elasticsearch.index.mapper
Class FieldStorageVerifier
java.lang.Object
org.elasticsearch.index.mapper.FieldStorageVerifier
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldStorageVerifierforField(String fieldName, LuceneDocument document) voidverify()Verifies that the field is stored as expected.
-
Method Details
-
forField
-
expectStoredField
-
expectDocValues
-
expectIgnoredSource
-
verify
public void verify()Verifies that the field is stored as expected.
-