Package org.elasticsearch.index.mapper
Class KeywordFieldSyntheticSourceSupport
java.lang.Object
org.elasticsearch.index.mapper.KeywordFieldSyntheticSourceSupport
- All Implemented Interfaces:
MapperTestCase.SyntheticSourceSupport
public class KeywordFieldSyntheticSourceSupport
extends Object
implements MapperTestCase.SyntheticSourceSupport
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexample(int maxValues) Examples that should work when source is generated from doc values.example(int maxValues, boolean loadBlockFromSource, boolean flipOrder) example(int maxValues, boolean loadBlockFromSource, boolean flipOrder, boolean ignoredValuesSorted) booleanExamples of mappings that should be rejected when source is configured to be loaded from doc values.booleanbooleanrandomDocValuesParams(boolean allowIgnoredSource, boolean isColumnar)
-
Method Details
-
isColumnar
public boolean isColumnar()- Specified by:
isColumnarin interfaceMapperTestCase.SyntheticSourceSupport- Returns:
- true when the index mode for this test is strictly columnar, meaning multi-value fields preserve insertion order and duplicates.
-
randomDocValuesParams
public static FieldMapper.DocValuesParameter.Values randomDocValuesParams(boolean allowIgnoredSource, boolean isColumnar) -
ignoreAbove
public boolean ignoreAbove()- Specified by:
ignoreAbovein interfaceMapperTestCase.SyntheticSourceSupport
-
enforcesSingleValue
public boolean enforcesSingleValue()- Specified by:
enforcesSingleValuein interfaceMapperTestCase.SyntheticSourceSupport- 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 andMapperTestCase.SyntheticSourceSupport.example(int)must only produce single-valued documents.
-
preservesExactSource
public boolean preservesExactSource()- Specified by:
preservesExactSourcein interfaceMapperTestCase.SyntheticSourceSupport- Returns:
- True if synthetic source support is implemented to exactly store the source without modifications.
-
example
Description copied from interface:MapperTestCase.SyntheticSourceSupportExamples that should work when source is generated from doc values.- Specified by:
examplein interfaceMapperTestCase.SyntheticSourceSupport
-
example
public MapperTestCase.SyntheticSourceExample example(int maxValues, boolean loadBlockFromSource, boolean flipOrder) -
example
public MapperTestCase.SyntheticSourceExample example(int maxValues, boolean loadBlockFromSource, boolean flipOrder, boolean ignoredValuesSorted) -
invalidExample
Description copied from interface:MapperTestCase.SyntheticSourceSupportExamples of mappings that should be rejected when source is configured to be loaded from doc values.- Specified by:
invalidExamplein interfaceMapperTestCase.SyntheticSourceSupport- Throws:
IOException
-