()
| 481 | logger.debug('FTS search failed; falling back to LIKE', { err: e?.message }); |
| 482 | } |
| 483 | } |
| 484 | // Fallback: AND of LIKE clauses over the raw tokens, newest-first. |
| 485 | const tokens = factTokens(query); |
| 486 | if (!tokens.length) return []; |
| 487 | const likeClauses = tokens.map(() => `fact LIKE ?`).join(' AND '); |
| 488 | const likeArgs = tokens.map(t => `%${t}%`); |
| 489 | const rows = this.db.prepare( |
no outgoing calls
no test coverage detected