struct
Memo::Document
- Memo::Document
- Struct
- Value
- Object
Overview
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
Defined in:
memo/service.crConstructors
Instance Method Summary
- #pair_id : ExternalId | Nil
- #pair_id=(pair_id : ExternalId | Nil)
- #parent_id : ExternalId | Nil
- #parent_id=(parent_id : ExternalId | Nil)
- #source_id : ExternalId
- #source_id=(source_id : ExternalId)
- #source_type : String
- #source_type=(source_type : String)
- #text : String
- #text=(text : String)
Constructor Detail
def self.new(source_type : String, source_id : ExternalId, text : String, pair_id : ExternalId | Nil = nil, parent_id : ExternalId | Nil = nil)
#