Commit 09b843c
Your Name
fix(pipeline): rebuild FTS5 index during incremental reindex
The incremental pipeline (pipeline_incremental.c) deletes the old DB and
dumps the merged graph via cbm_gbuf_dump_to_sqlite, which bypasses SQLite
triggers. The FTS5 table was left empty (0 rows) after every incremental
reindex, making search_graph return 0 results for all queries.
Fix: after persisting file hashes (the last step before returning), rebuild
the FTS5 index with DELETE + INSERT from nodes using cbm_camel_split for
camelCase token splitting.
Before: full reindex → 672 FTS rows, incremental → 0 FTS rows
After: full reindex → 672 FTS rows, incremental → 672 FTS rows1 parent fc2060b commit 09b843c
1 file changed
+21
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
0 commit comments