Package org.elasticsearch.index.mapper
Interface MapperTestCase.SyntheticSourceSupport
- All Known Implementing Classes:
KeywordFieldSyntheticSourceSupport,NumberFieldMapperTests.NumberSyntheticSourceSupport,NumberFieldMapperTests.NumberSyntheticSourceSupportForKeepTests
- Enclosing class:
MapperTestCase
public static interface MapperTestCase.SyntheticSourceSupport
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanexample(int maxValues) Examples that should work when source is generated from doc values.default booleanExamples of mappings that should be rejected when source is configured to be loaded from doc values.default booleandefault boolean
-
Method Details
-
preservesExactSource
default boolean preservesExactSource()- Returns:
- True if synthetic source support is implemented to exactly store the source without modifications.
-
ignoreAbove
default boolean ignoreAbove() -
enforcesSingleValue
default boolean enforcesSingleValue()- Returns:
- true when the field enforces single-value semantics (ie.
doc_values.multi_value: false). In such cases, a doc with more than one value for the field is rejected at parse time andexample(int)must only produce single-valued documents.
-
isColumnar
default boolean isColumnar()- Returns:
- true when the index mode for this test is strictly columnar, meaning multi-value fields preserve insertion order and duplicates.
-
example
Examples that should work when source is generated from doc values.- Throws:
IOException
-
invalidExample
Examples of mappings that should be rejected when source is configured to be loaded from doc values.- Throws:
IOException
-