Module index_engine

Module index_engine 

Source
Expand description

Resumable filesystem indexer and compiler to Turso SQLite databases.

Functionsยง

check_has_full_text
Checks if the entries table has the full_text column.
derive_source_name
Derives a clean, trimmed source name for the database from a journal path.
expand_search_keywords
Generates an expanded set of search keywords for a filename or path component, splitting on punctuation, whitespace, and CamelCase word boundaries, and emitting individual words, contiguous compound combinations, and the original text.
flush_deleted_files_from_index
Iterates through the SQLite index associated with the given journal, checks whether each file remains on disk, and deletes nonexistent files from the index.
run_fsindex
Executes directory indexing into a .cscjournal and/or compiles journals into an indexed SQLite database.
split_camel_case
Splits a CamelCase string into its constituent subwords.