Class MapperTestUtils
java.lang.Object
org.opensearch.index.MapperTestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertConflicts(String mapping1, String mapping2, org.opensearch.index.mapper.DocumentMapperParser parser, String... conflicts) static org.opensearch.index.analysis.IndexAnalyzerscreateMockTestAnalysis(org.opensearch.common.settings.Settings nodeSettings, org.opensearch.plugins.AnalysisPlugin... analysisPlugins) static org.opensearch.index.mapper.MapperServicenewMapperService(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings indexSettings, String indexName) static org.opensearch.index.mapper.MapperServicenewMapperService(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings settings, org.opensearch.indices.IndicesModule indicesModule, String indexName) static org.opensearch.index.mapper.MapperServicenewMapperServiceWithHelperAnalyzer(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings settings, org.opensearch.indices.IndicesModule indicesModule, String indexName)
-
Constructor Details
-
MapperTestUtils
public MapperTestUtils()
-
-
Method Details
-
newMapperService
public static org.opensearch.index.mapper.MapperService newMapperService(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings indexSettings, String indexName) throws IOException - Throws:
IOException
-
newMapperService
public static org.opensearch.index.mapper.MapperService newMapperService(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings settings, org.opensearch.indices.IndicesModule indicesModule, String indexName) throws IOException - Throws:
IOException
-
newMapperServiceWithHelperAnalyzer
public static org.opensearch.index.mapper.MapperService newMapperServiceWithHelperAnalyzer(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings settings, org.opensearch.indices.IndicesModule indicesModule, String indexName) throws IOException - Throws:
IOException
-
createMockTestAnalysis
public static org.opensearch.index.analysis.IndexAnalyzers createMockTestAnalysis(org.opensearch.common.settings.Settings nodeSettings, org.opensearch.plugins.AnalysisPlugin... analysisPlugins) throws IOException - Throws:
IOException
-
assertConflicts
public static void assertConflicts(String mapping1, String mapping2, org.opensearch.index.mapper.DocumentMapperParser parser, String... conflicts) throws IOException - Throws:
IOException
-