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
ConstructorDescriptionInternalParseContext(MappingLookup mappingLookup, IndexSettings indexSettings, IndexAnalyzers indexAnalyzers, Function<DateFormatter,MappingParserContext> parserContext, SourceToParse source, org.elasticsearch.common.xcontent.XContentParser parser)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDoc(LuceneDocument doc)
void
addDynamicMapper(Mapper mapper)
Add a new mapper dynamically created while parsing.void
addDynamicRuntimeField(RuntimeField runtimeField)
Add a new runtime field dynamically created while parsing.void
addIgnoredField(String field)
Add the givenfield
to the set of ignored fields.void
addToFieldNames(String field)
Add the givenfield
to 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.XContentParser
parser()
path()
root()
rootDoc()
seqID()
void
org.apache.lucene.document.Field
version()
void
version(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:
dynamicTemplateParserContext
in classParseContext
-
indexSettings
- Specified by:
indexSettings
in classParseContext
-
sourceToParse
- Specified by:
sourceToParse
in classParseContext
-
path
- Specified by:
path
in classParseContext
-
parser
public org.elasticsearch.common.xcontent.XContentParser parser()- Specified by:
parser
in classParseContext
-
rootDoc
- Specified by:
rootDoc
in classParseContext
-
docs
- Specified by:
docs
in classParseContext
-
doc
- Specified by:
doc
in classParseContext
-
addDoc
- Specified by:
addDoc
in classParseContext
-
root
- Specified by:
root
in classParseContext
-
mappingLookup
- Specified by:
mappingLookup
in classParseContext
-
getMetadataMapper
- Specified by:
getMetadataMapper
in classParseContext
-
indexAnalyzers
- Specified by:
indexAnalyzers
in classParseContext
-
version
public org.apache.lucene.document.Field version()- Specified by:
version
in classParseContext
-
version
public void version(org.apache.lucene.document.Field version)- Specified by:
version
in classParseContext
-
seqID
- Specified by:
seqID
in classParseContext
-
seqID
- Specified by:
seqID
in classParseContext
-
addDynamicMapper
Description copied from class:ParseContext
Add a new mapper dynamically created while parsing.- Specified by:
addDynamicMapper
in classParseContext
-
getDynamicMappers
Description copied from class:ParseContext
Get dynamic mappers created while parsing.- Specified by:
getDynamicMappers
in classParseContext
-
getObjectMapper
- Specified by:
getObjectMapper
in classParseContext
-
addDynamicRuntimeField
Description copied from class:ParseContext
Add a new runtime field dynamically created while parsing.- Specified by:
addDynamicRuntimeField
in classParseContext
-
getDynamicRuntimeFields
Description copied from class:ParseContext
Get dynamic runtime fields created while parsing.- Specified by:
getDynamicRuntimeFields
in classParseContext
-
nonRootDocuments
Description copied from class:ParseContext
Returns an Iterable over all non-root documents. If there are no non-root documents the iterable will return an empty iterator.- Specified by:
nonRootDocuments
in classParseContext
-
addIgnoredField
Description copied from class:ParseContext
Add the givenfield
to the set of ignored fields.- Specified by:
addIgnoredField
in classParseContext
-
getIgnoredFields
Description copied from class:ParseContext
Return the collection of fields that have been ignored so far.- Specified by:
getIgnoredFields
in classParseContext
-
addToFieldNames
Description copied from class:ParseContext
Add the givenfield
to the _field_names field Use this if an exists query run against the field cannot use docvalues or norms.- Specified by:
addToFieldNames
in classParseContext
-
getFieldNames
Description copied from class:ParseContext
Return the collection of fields to be added to the _field_names field- Specified by:
getFieldNames
in classParseContext
-