MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / shouldReindex

Function shouldReindex

internal/search/reindex.go:475–483  ·  view source on GitHub ↗
(ctx context.Context, client *TypesenseClient, ds database.IDataSource)

Source from the content-addressed store, hash-verified

473}
474
475func shouldReindex(ctx context.Context, client *TypesenseClient, ds database.IDataSource) bool {
476 if !dbHasData(ctx, ds) {
477 return false
478 }
479 if typesenseHasData(ctx, client) {
480 return false
481 }
482 return true
483}
484
485func TryReindexIfNeeded(ctx context.Context, client *TypesenseClient, ds database.IDataSource) {
486 if client == nil || ds == nil {

Callers 1

TryReindexIfNeededFunction · 0.85

Calls 2

dbHasDataFunction · 0.85
typesenseHasDataFunction · 0.85

Tested by

no test coverage detected