Class 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
      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.
      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 XContentType getXContentType()
    • setSource

      public void setSource(BytesReference source, 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()
      toString in class Object