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,RuntimeField.Parser> runtimeFieldParsers, Version indexVersionCreated, java.util.function.Supplier<SearchExecutionContext> searchExecutionContextSupplier, DateFormatter dateFormatter, ScriptCompiler scriptCompiler, IndexAnalyzers indexAnalyzers, IndexSettings indexSettings, java.util.function.BooleanSupplier idFieldDataEnabled)
-
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()
RuntimeField.Parser
runtimeFieldParser(java.lang.String type)
ScriptCompiler
scriptCompiler()
The ScriptCompiler to compile scripts needed by the Mapper.java.util.function.Supplier<SearchExecutionContext>
searchExecutionContext()
protected java.util.function.Function<java.lang.String,SimilarityProvider>
similarityLookupService()
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,RuntimeField.Parser> runtimeFieldParsers, Version indexVersionCreated, java.util.function.Supplier<SearchExecutionContext> searchExecutionContextSupplier, DateFormatter dateFormatter, ScriptCompiler scriptCompiler, IndexAnalyzers indexAnalyzers, IndexSettings indexSettings, java.util.function.BooleanSupplier idFieldDataEnabled)
-
-
Method Details
-
getIndexAnalyzers
-
getIndexSettings
-
isIdFieldDataEnabled
public java.util.function.BooleanSupplier isIdFieldDataEnabled() -
getSettings
-
getSimilarity
-
typeParser
-
runtimeFieldParser
-
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() -
scriptCompiler
The ScriptCompiler to compile scripts needed by the Mapper.
-