Package org.elasticsearch.index.mapper
Class Mapper.TypeParser.ParserContext
java.lang.Object
org.elasticsearch.index.mapper.Mapper.TypeParser.ParserContext
- Enclosing interface:
- Mapper.TypeParser
public static class Mapper.TypeParser.ParserContext
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ParserContext(java.util.function.Function<java.lang.String,SimilarityProvider> similarityLookupService, MapperService mapperService, java.util.function.Function<java.lang.String,Mapper.TypeParser> typeParsers, Version indexVersionCreated, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier, DateFormatter dateFormatter, ScriptService scriptService) -
Method Summary
Modifier and Type Method Description Mapper.TypeParser.ParserContextcreateMultiFieldContext(Mapper.TypeParser.ParserContext in)DateFormattergetDateFormatter()Gets an optional default date format for date fields that do not have an explicit format set Ifnull, then date fields will default toDateFieldMapper.DEFAULT_DATE_TIME_FORMATTER.IndexAnalyzersgetIndexAnalyzers()SettingsgetSettings()SimilarityProvidergetSimilarity(java.lang.String name)VersionindexVersionCreated()booleanisWithinMultiField()MapperServicemapperService()java.util.function.Supplier<QueryShardContext>queryShardContextSupplier()ScriptServicescriptService()The ScriptService to compile scripts needed by the Mapper.protected java.util.function.Function<java.lang.String,SimilarityProvider>similarityLookupService()Mapper.TypeParsertypeParser(java.lang.String type)protected java.util.function.Function<java.lang.String,Mapper.TypeParser>typeParsers()
-
Constructor Details
-
ParserContext
public ParserContext(java.util.function.Function<java.lang.String,SimilarityProvider> similarityLookupService, MapperService mapperService, java.util.function.Function<java.lang.String,Mapper.TypeParser> typeParsers, Version indexVersionCreated, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier, DateFormatter dateFormatter, ScriptService scriptService)
-
-
Method Details
-
getIndexAnalyzers
-
getSettings
-
getSimilarity
-
mapperService
-
typeParser
-
indexVersionCreated
-
queryShardContextSupplier
-
getDateFormatter
Gets an optional default date format for date fields that do not have an explicit format set Ifnull, then date fields will default toDateFieldMapper.DEFAULT_DATE_TIME_FORMATTER. -
isWithinMultiField
public boolean isWithinMultiField() -
typeParsers
-
similarityLookupService
protected java.util.function.Function<java.lang.String,SimilarityProvider> similarityLookupService() -
scriptService
The ScriptService to compile scripts needed by the Mapper. -
createMultiFieldContext
-