Wipe the segment vocabulary. A full index calls this at its start; the * node write path repopulates it as files (re-)index, so the end state is * exactly the current names with no orphan rows.
()
| 655 | * node write path repopulates it as files (re-)index, so the end state is |
| 656 | * exactly the current names with no orphan rows. */ |
| 657 | clearNameSegmentVocab(): void { |
| 658 | this.db.exec('DELETE FROM name_segment_vocab'); |
| 659 | this.segmentedNames.clear(); |
| 660 | } |
| 661 | |
| 662 | /** True when the vocab has no rows — an index built before the table existed. |
| 663 | * `sync` uses this to heal such databases (see rebuildNameSegmentVocabFrom). */ |
no test coverage detected