Package org.elasticsearch.index.mapper
Class TextFieldFamilySyntheticSourceTestSetup
java.lang.Object
org.elasticsearch.index.mapper.TextFieldFamilySyntheticSourceTestSetup
Provides functionality needed to test synthetic source support in text and text-like fields (e.g. "text", "annotated_text").
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSupportedReaders
(MapperService mapper, String loaderFieldName) loadBlockExpected
(MapperTestCase.BlockReaderSupport blockReaderSupport, boolean columnReader) syntheticSourceSupport
(String fieldType, boolean supportsCustomIndexConfiguration) static void
validateRoundTripReader
(String syntheticSource, org.apache.lucene.index.DirectoryReader reader, org.apache.lucene.index.DirectoryReader roundTripReader)
-
Constructor Details
-
TextFieldFamilySyntheticSourceTestSetup
public TextFieldFamilySyntheticSourceTestSetup()
-
-
Method Details
-
syntheticSourceSupport
public static MapperTestCase.SyntheticSourceSupport syntheticSourceSupport(String fieldType, boolean supportsCustomIndexConfiguration) -
getSupportedReaders
public static MapperTestCase.BlockReaderSupport getSupportedReaders(MapperService mapper, String loaderFieldName) -
loadBlockExpected
public static Function<Object,Object> loadBlockExpected(MapperTestCase.BlockReaderSupport blockReaderSupport, boolean columnReader) -
validateRoundTripReader
public static void validateRoundTripReader(String syntheticSource, org.apache.lucene.index.DirectoryReader reader, org.apache.lucene.index.DirectoryReader roundTripReader)
-