Package org.elasticsearch.index.mapper
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 Summary
ConstructorDescription<,SimilarityProvider> similarityLookupService, <,Mapper.TypeParser> typeParsers, <,RuntimeField.Parser> runtimeFieldParsers, Version indexVersionCreated, <SearchExecutionContext> searchExecutionContextSupplier, DateFormatter dateFormatter, ScriptCompiler scriptCompiler, IndexAnalyzers indexAnalyzers, IndexSettings indexSettings, idFieldDataEnabled)
-
Method Summary
Modifier and TypeMethodDescriptionGets an optional default date format for date fields that do not have an explicit format setname)
boolean
true if this pars context is coming from parsing dynamic template mappingsboolean
type)
The ScriptCompiler to compile scripts needed by the Mapper.protected <,SimilarityProvider>
type)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
MappingParserContext
public MappingParserContext(<,SimilarityProvider> similarityLookupService, <,Mapper.TypeParser> typeParsers, <,RuntimeField.Parser> runtimeFieldParsers, Version indexVersionCreated, <SearchExecutionContext> searchExecutionContextSupplier, DateFormatter dateFormatter, ScriptCompiler scriptCompiler, IndexAnalyzers indexAnalyzers, IndexSettings indexSettings, idFieldDataEnabled)
-
-
Method Details
-
getIndexAnalyzers
-
getIndexSettings
-
isIdFieldDataEnabled
public isIdFieldDataEnabled() -
getSettings
-
getSimilarity
public name) -
typeParser
public type) -
runtimeFieldParser
public type) -
indexVersionCreated
-
searchExecutionContext
-
getDateFormatter
Gets an optional default date format for date fields that do not have an explicit format setIf
null
, then date fields will default toDateFieldMapper.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
-
scriptCompiler
The ScriptCompiler to compile scripts needed by the Mapper.
-