struct

Memo::Document

Inherits Struct < Value < Object

Document to be indexed

Supports both integer and string source IDs:

  • Int64: Time-based, sortable IDs (e.g., Unix timestamps)
  • String: UUIDs and other text identifiers

Constructors

new(source_type : String, source_id : ExternalId, text : String, pair_id : ExternalId | Nil = nil, parent_id : ExternalId | Nil = nil)
Source

Instance methods

pair_id
Source
pair_id=(pair_id : ExternalId | Nil)
Source
parent_id
Source
parent_id=(parent_id : ExternalId | Nil)
Source
source_id
Source
source_id=(source_id : ExternalId)
Source
source_type
Source
source_type=(source_type : String)
Source
text
Source
text=(text : String)
Source