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

Function searchFts

packages/node-runtime/src/services/session-index-service.ts:40–49  ·  view source on GitHub ↗
(
  adapter: SessionRuntimeAdapter,
  sessionId: string,
  keywords: string[],
  limit: number,
  offset: number
)

Source from the content-addressed store, hash-verified

38}
39
40export function searchFts(
41 adapter: SessionRuntimeAdapter,
42 sessionId: string,
43 keywords: string[],
44 limit: number,
45 offset: number
46) {
47 const db = adapter.ensureReadonly(sessionId)
48 return searchByFts(db, keywords, limit, offset)
49}
50
51export function rebuildFts(adapter: SessionRuntimeAdapter, sessionId: string) {
52 const db = adapter.ensureWritable(sessionId)

Callers

nothing calls this directly

Calls 2

searchByFtsFunction · 0.90
ensureReadonlyMethod · 0.80

Tested by

no test coverage detected