Class ParsedDocument

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

public class ParsedDocument extends Object
The result of parsing a document.
  • Constructor Details

  • Method Details

    • noopTombstone

      public static ParsedDocument noopTombstone(String reason)
      Create a no-op tombstone document
      Parameters:
      reason - the reason for the no-op
    • deleteTombstone

      public static ParsedDocument deleteTombstone(String type, String id)
      Create a delete tombstone document, which will be used in soft-update methods. The returned document consists only _uid, _seqno, _term and _version fields; other metadata fields are excluded.
      Parameters:
      id - the id of the deleted document
    • id

      public String id()
    • type

      public String type()
    • version

      public org.apache.lucene.document.Field version()
    • updateSeqID

      public void updateSeqID(long sequenceNumber, long primaryTerm)
    • routing

      public String routing()
    • rootDoc

      public LuceneDocument rootDoc()
    • docs

      public List<LuceneDocument> docs()
    • source

      public BytesReference source()
    • getXContentType

      public org.elasticsearch.common.xcontent.XContentType getXContentType()
    • setSource

      public void setSource(BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)
    • dynamicMappingsUpdate

      public Mapping dynamicMappingsUpdate()
      Return dynamic updates to mappings or null if there were no updates to the mappings.
    • addDynamicMappingsUpdate

      public void addDynamicMappingsUpdate(Mapping update)
    • toString

      public String toString()
      Overrides:
      toString in class Object