struct Memo::Document

Overview

Document to be indexed

Supports both integer and string source IDs:

Defined in:

memo/service.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source_type : String, source_id : ExternalId, text : String, pair_id : ExternalId | Nil = nil, parent_id : ExternalId | Nil = nil) #

[View source]

Instance Method Detail

def pair_id : ExternalId | Nil #

[View source]
def pair_id=(pair_id : ExternalId | Nil) #

[View source]
def parent_id : ExternalId | Nil #

[View source]
def parent_id=(parent_id : ExternalId | Nil) #

[View source]
def source_id : ExternalId #

[View source]
def source_id=(source_id : ExternalId) #

[View source]
def source_type : String #

[View source]
def source_type=(source_type : String) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]