Package org.elasticsearch.index.mapper
Class ParseContext.InternalParseContext
java.lang.Object
org.elasticsearch.index.mapper.ParseContext
org.elasticsearch.index.mapper.ParseContext.InternalParseContext
- Enclosing class:
- ParseContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ParseContext
ParseContext.InternalParseContext -
Constructor Summary
ConstructorsConstructorDescriptionInternalParseContext(MappingLookup mappingLookup, IndexSettings indexSettings, IndexAnalyzers indexAnalyzers, Function<DateFormatter,MappingParserContext> parserContext, SourceToParse source, org.elasticsearch.common.xcontent.XContentParser parser) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDoc(LuceneDocument doc)voidaddDynamicMapper(Mapper mapper)Add a new mapper dynamically created while parsing.voidaddDynamicRuntimeField(RuntimeField runtimeField)Add a new runtime field dynamically created while parsing.voidaddIgnoredField(String field)Add the givenfieldto the set of ignored fields.voidaddToFieldNames(String field)Add the givenfieldto the _field_names field Use this if an exists query run against the field cannot use docvalues or norms.doc()docs()dynamicTemplateParserContext(DateFormatter dateFormatter)Get dynamic mappers created while parsing.Get dynamic runtime fields created while parsing.Return the collection of fields to be added to the _field_names fieldReturn the collection of fields that have been ignored so far.getMetadataMapper(String mapperName)getObjectMapper(String name)Returns an Iterable over all non-root documents.org.elasticsearch.common.xcontent.XContentParserparser()path()root()rootDoc()seqID()voidorg.apache.lucene.document.Fieldversion()voidversion(org.apache.lucene.document.Field version)Methods inherited from class org.elasticsearch.index.mapper.ParseContext
createCopyToContext, createMultiFieldContext, createNestedContext, findDynamicTemplate, isWithinCopyTo, isWithinMultiFields, overridePath, switchDoc, switchParser
-
Constructor Details
-
InternalParseContext
public InternalParseContext(MappingLookup mappingLookup, IndexSettings indexSettings, IndexAnalyzers indexAnalyzers, Function<DateFormatter,MappingParserContext> parserContext, SourceToParse source, org.elasticsearch.common.xcontent.XContentParser parser)
-
-
Method Details
-
dynamicTemplateParserContext
- Specified by:
dynamicTemplateParserContextin classParseContext
-
indexSettings
- Specified by:
indexSettingsin classParseContext
-
sourceToParse
- Specified by:
sourceToParsein classParseContext
-
path
- Specified by:
pathin classParseContext
-
parser
public org.elasticsearch.common.xcontent.XContentParser parser()- Specified by:
parserin classParseContext
-
rootDoc
- Specified by:
rootDocin classParseContext
-
docs
- Specified by:
docsin classParseContext
-
doc
- Specified by:
docin classParseContext
-
addDoc
- Specified by:
addDocin classParseContext
-
root
- Specified by:
rootin classParseContext
-
mappingLookup
- Specified by:
mappingLookupin classParseContext
-
getMetadataMapper
- Specified by:
getMetadataMapperin classParseContext
-
indexAnalyzers
- Specified by:
indexAnalyzersin classParseContext
-
version
public org.apache.lucene.document.Field version()- Specified by:
versionin classParseContext
-
version
public void version(org.apache.lucene.document.Field version)- Specified by:
versionin classParseContext
-
seqID
- Specified by:
seqIDin classParseContext
-
seqID
- Specified by:
seqIDin classParseContext
-
addDynamicMapper
Description copied from class:ParseContextAdd a new mapper dynamically created while parsing.- Specified by:
addDynamicMapperin classParseContext
-
getDynamicMappers
Description copied from class:ParseContextGet dynamic mappers created while parsing.- Specified by:
getDynamicMappersin classParseContext
-
getObjectMapper
- Specified by:
getObjectMapperin classParseContext
-
addDynamicRuntimeField
Description copied from class:ParseContextAdd a new runtime field dynamically created while parsing.- Specified by:
addDynamicRuntimeFieldin classParseContext
-
getDynamicRuntimeFields
Description copied from class:ParseContextGet dynamic runtime fields created while parsing.- Specified by:
getDynamicRuntimeFieldsin classParseContext
-
nonRootDocuments
Description copied from class:ParseContextReturns an Iterable over all non-root documents. If there are no non-root documents the iterable will return an empty iterator.- Specified by:
nonRootDocumentsin classParseContext
-
addIgnoredField
Description copied from class:ParseContextAdd the givenfieldto the set of ignored fields.- Specified by:
addIgnoredFieldin classParseContext
-
getIgnoredFields
Description copied from class:ParseContextReturn the collection of fields that have been ignored so far.- Specified by:
getIgnoredFieldsin classParseContext
-
addToFieldNames
Description copied from class:ParseContextAdd the givenfieldto the _field_names field Use this if an exists query run against the field cannot use docvalues or norms.- Specified by:
addToFieldNamesin classParseContext
-
getFieldNames
Description copied from class:ParseContextReturn the collection of fields to be added to the _field_names field- Specified by:
getFieldNamesin classParseContext
-