Skip to main content

Module config

Module config 

Source
Expand description

Configuration types for the Open Knowledge Catalog indexer.

This module defines the OkcConfig struct which controls all aspects of the indexing process, including root directories, file filtering, size limits, database location, and watcher behavior.

Configuration can be loaded from:

  1. Default values (lowest priority)
  2. TOML config file at ./okc.toml or ~/.config/okc/config.toml
  3. Environment variables with OKC_ prefix (e.g., OKC_ROOTS, OKC_DB_PATH)
  4. CLI flags (highest priority)

Re-exports§

pub use bm25::Bm25Config;

Modules§

bm25
BM25 search configuration for FTS5 relevance ranking.

Structs§

OkcConfig
Configuration for the OKC indexer and service.

Enums§

ConfigError
Errors that can occur during configuration loading and validation.