quick_search/config_example.toml

37 lines
No EOL
2 KiB
TOML

[paths]
# One or more directory roots to index. Walked in order; duplicate and
# nested roots are de-duplicated automatically.
indexing_paths = ["/"]
database_path = "QuickSearch.db"
[processing]
# Amount of data in bytes read from start/end of files used to calculate hash
hash_length = 8192
# Maximum text content to index per file (bytes)
maximum_text_size = 262144
# Maximum file size to process for text extraction (bytes)
maximum_text_file_size = 2097152
# Number of files to process in each batch (directory walk / inserts / text extraction batches)
batch_size = 200
# Files per transaction for incremental UPDATE files + DELETE from searchabletext (FTS); larger = fewer commits, more RAM per chunk
fts_update_batch_size = 1000
# If true, run a fast shell-backed tree count before Phase 1 (enables % progress; Linux uses GNU find -printf '\n' | wc -l when available).
# If false, Phase 1 shows file counts without a percentage.
precount_files_for_progress = false
# If true, follow symbolic links during directory walks (indexing only; shell precount unchanged).
follow_symlinks = false
# If true, hidden files and directories will be indexed.
include_hidden = false
# FTS5 tokenization method (e.g., 'trigram', 'porter', 'unicode61')
# Look here for more information https://www.sqlite.org/fts5.html#tokenizers
tokenize = "trigram"
# If true (default), extracted text is stored zstd-compressed in a sidecar
# table so the GUI's search results can render snippet previews with the
# query terms highlighted. If false, the inverted FTS5 index is still
# populated (so queries match the same files) but nothing is stored
# alongside; result rows carry no snippet. Turning this off drops the
# on-disk footprint to roughly what stock Baloo uses, useful for
# apples-to-apples comparisons and for users who never read snippet text.
# Changing this only affects files indexed *after* the change; existing
# sidecar rows are kept until re-indexed.
store_text_for_snippets = true