class SearchIngest::TableManager

Defined in:

search-ingest/table_manager.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(tables : Array(Table::Interface), backfill : Bool = false, watch : Bool = false) #

[View source]

Instance Method Detail

def backfill_all : Bool #

Save all documents in all tables to the correct indices


[View source]
def consistent_indices? #

Checks if any index does not exist or has a different mapping


[View source]
def initialise_indices(backfill : Bool = false) #

Currently a reindex is triggered if...

  • a single index does not exist
  • a single mapping is different

[View source]
def load_complete? : Bool #

[View source]
def load_error : Exception | Nil #

[View source]
def load_success? : Bool #

[View source]
def reindex_all : Bool #

Clear and update all index mappings


[View source]
def stop #

[View source]
def tables : Array(Table::Interface) #

[View source]
def watch_tables #

[View source]