Class SourceToParse

java.lang.Object
org.elasticsearch.index.mapper.SourceToParse

public class SourceToParse extends Object
  • Constructor Details

    • SourceToParse

      public SourceToParse(@Nullable String id, BytesReference source, org.elasticsearch.xcontent.XContentType xContentType, @Nullable String routing, Map<String,String> dynamicTemplates)
    • SourceToParse

      public SourceToParse(String id, BytesReference source, org.elasticsearch.xcontent.XContentType xContentType)
  • Method Details

    • source

      public BytesReference source()
    • id

      @Nullable public String id()
      The _id provided on the request or calculated on the coordinating node. If the index is in time_series mode then the coordinating node will not calculate the _id. In that case this will be null if 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

      @Nullable public String routing()
    • dynamicTemplates

      public Map<String,String> dynamicTemplates()
      Returns a map from the full path (i.e. foo.bar) of field names to the names of dynamic mapping templates.
    • getXContentType

      public org.elasticsearch.xcontent.XContentType getXContentType()