Class MappingParserContext

org.elasticsearch.index.mapper.MappingParserContext

public class MappingParserContext extends
Holds everything that is needed to parse mappings. This is carried around while parsing mappings whether that be from a dynamic template or from index mappings themselves.
  • Constructor Details

  • Method Details

    • getIndexAnalyzers

      public IndexAnalyzers getIndexAnalyzers()
    • getIndexSettings

      public IndexSettings getIndexSettings()
    • isIdFieldDataEnabled

      public  isIdFieldDataEnabled()
    • getSettings

      public Settings getSettings()
    • getSimilarity

      public  name)
    • typeParser

      public  type)
    • runtimeFieldParser

      public  type)
    • indexVersionCreated

      public Version indexVersionCreated()
    • searchExecutionContext

      public <SearchExecutionContext> searchExecutionContext()
    • getDateFormatter

      public DateFormatter getDateFormatter()
      Gets an optional default date format for date fields that do not have an explicit format set

      If null, then date fields will default to DateFieldMapper.DEFAULT_DATE_TIME_FORMATTER.

    • isWithinMultiField

      public boolean isWithinMultiField()
    • isFromDynamicTemplate

      public boolean isFromDynamicTemplate()
      true if this pars context is coming from parsing dynamic template mappings
    • similarityLookupService

      protected <,​SimilarityProvider> similarityLookupService()
    • scriptCompiler

      public ScriptCompiler scriptCompiler()
      The ScriptCompiler to compile scripts needed by the Mapper.