Class MapperTestUtils

java.lang.Object
org.opensearch.index.MapperTestUtils

public class MapperTestUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    assertConflicts(String mapping1, String mapping2, org.opensearch.index.mapper.DocumentMapperParser parser, String... conflicts)
     
    static org.opensearch.index.analysis.IndexAnalyzers
    createMockTestAnalysis(org.opensearch.common.settings.Settings nodeSettings, org.opensearch.plugins.AnalysisPlugin... analysisPlugins)
     
    static org.opensearch.index.mapper.MapperService
    newMapperService(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, Path tempDir, org.opensearch.common.settings.Settings indexSettings, String indexName)
     
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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