Interface MapperTestCase.SyntheticSourceSupport

All Known Implementing Classes:
KeywordFieldSyntheticSourceSupport, NumberFieldMapperTests.NumberSyntheticSourceSupport, NumberFieldMapperTests.NumberSyntheticSourceSupportForKeepTests
Enclosing class:
MapperTestCase

public static interface MapperTestCase.SyntheticSourceSupport
  • 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 and example(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

      MapperTestCase.SyntheticSourceExample example(int maxValues) throws IOException
      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