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, java.util.function.Function<java.lang.String,Mapper.TypeParser> typeParsers, java.util.function.Function<java.lang.String,RuntimeFieldType.Parser> runtimeTypeParsers, Version indexVersionCreated, java.util.function.Supplier<SearchExecutionContext> searchExecutionContextSupplier, DateFormatter dateFormatter, ScriptService scriptService, IndexAnalyzers indexAnalyzers, IndexSettings indexSettings, java.util.function.BooleanSupplier idFieldDataEnabled, boolean supportsDynamicRuntimeMappings)
-
Method Summary
Modifier and Type Method Description DateFormatter
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
.IndexAnalyzers
getIndexAnalyzers()
IndexSettings
getIndexSettings()
Settings
getSettings()
SimilarityProvider
getSimilarity(java.lang.String name)
Version
indexVersionCreated()
boolean
isFromDynamicTemplate()
true if this pars context is coming from parsing dynamic template mappingsjava.util.function.BooleanSupplier
isIdFieldDataEnabled()
boolean
isWithinMultiField()
RuntimeFieldType.Parser
runtimeFieldTypeParser(java.lang.String type)
ScriptService
scriptService()
The ScriptService to compile scripts needed by the Mapper.java.util.function.Supplier<SearchExecutionContext>
searchExecutionContext()
protected java.util.function.Function<java.lang.String,SimilarityProvider>
similarityLookupService()
boolean
supportsDynamicRuntimeMappings()
Mapper.TypeParser
typeParser(java.lang.String type)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ParserContext
public ParserContext(java.util.function.Function<java.lang.String,SimilarityProvider> similarityLookupService, java.util.function.Function<java.lang.String,Mapper.TypeParser> typeParsers, java.util.function.Function<java.lang.String,RuntimeFieldType.Parser> runtimeTypeParsers, Version indexVersionCreated, java.util.function.Supplier<SearchExecutionContext> searchExecutionContextSupplier, DateFormatter dateFormatter, ScriptService scriptService, IndexAnalyzers indexAnalyzers, IndexSettings indexSettings, java.util.function.BooleanSupplier idFieldDataEnabled, boolean supportsDynamicRuntimeMappings)
-
-
Method Details
-
getIndexAnalyzers
-
getIndexSettings
-
isIdFieldDataEnabled
public java.util.function.BooleanSupplier isIdFieldDataEnabled() -
getSettings
-
getSimilarity
-
typeParser
-
runtimeFieldTypeParser
-
supportsDynamicRuntimeMappings
public boolean supportsDynamicRuntimeMappings() -
indexVersionCreated
-
searchExecutionContext
-
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() -
isFromDynamicTemplate
public boolean isFromDynamicTemplate()true if this pars context is coming from parsing dynamic template mappings -
similarityLookupService
protected java.util.function.Function<java.lang.String,SimilarityProvider> similarityLookupService() -
scriptService
The ScriptService to compile scripts needed by the Mapper.
-