MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / rebuildFtsIndex

Function rebuildFtsIndex

packages/node-runtime/src/fts/index.ts:80–85  ·  view source on GitHub ↗
(db: DatabaseAdapter)

Source from the content-addressed store, hash-verified

78 * Rebuild FTS index by dropping and recreating.
79 */
80export function rebuildFtsIndex(db: DatabaseAdapter): { indexed: number } {
81 if (hasFtsTable(db)) {
82 db.exec('DROP TABLE message_fts')
83 }
84 return buildFtsIndex(db)
85}
86
87/**
88 * Insert FTS entries for a batch of messages.

Callers 1

rebuildFtsFunction · 0.90

Calls 3

hasFtsTableFunction · 0.85
buildFtsIndexFunction · 0.70
execMethod · 0.65

Tested by

no test coverage detected