java.lang.Object
org.elasticsearch.index.mapper.SourceToParse
-
Constructor Summary
ConstructorsConstructorDescriptionSourceToParse(String id, BytesReference source, XContentType xContentType) SourceToParse(String id, BytesReference source, XContentType xContentType, String routing) SourceToParse(String id, BytesReference source, XContentType xContentType, String routing, Map<String, String> dynamicTemplates) SourceToParse(String id, BytesReference source, XContentType xContentType, String routing, Map<String, String> dynamicTemplates, boolean includeSourceOnError, XContentMeteringParserDecorator meteringParserDecorator) -
Method Summary
-
Constructor Details
-
SourceToParse
public SourceToParse(@Nullable String id, BytesReference source, XContentType xContentType, @Nullable String routing, Map<String, String> dynamicTemplates, boolean includeSourceOnError, XContentMeteringParserDecorator meteringParserDecorator) -
SourceToParse
-
SourceToParse
-
SourceToParse
public SourceToParse(String id, BytesReference source, XContentType xContentType, String routing, Map<String, String> dynamicTemplates)
-
-
Method Details
-
source
-
id
The_idprovided on the request or calculated on the coordinating node. If the index is intime_seriesmode then the coordinating node will not calculate the_id. In that case this will benullif one isn't sent on the request.Use
DocumentParserContext.documentDescription()to generate a description of the document for errors instead of calling this method. -
routing
-
dynamicTemplates
Returns a map from the full path (i.e. foo.bar) of field names to the names of dynamic mapping templates. -
getXContentType
-
getDocumentSizeObserver
-
getIncludeSourceOnError
public boolean getIncludeSourceOnError()
-