pub struct IndexerConfig {
pub chunk_config: ChunkConfig,
pub embed_config: EmbeddingConfig,
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub debounce_ms: u64,
pub max_file_size: u64,
pub force: bool,
pub include_hidden: bool,
pub include_secret_files: bool,
pub honor_gitignore: bool,
pub purge_excluded: bool,
pub min_alnum_chars: usize,
}Expand description
Configuration for the indexer.
Fields§
§chunk_config: ChunkConfigChunk configuration
embed_config: EmbeddingConfigEmbedding configuration
include_patterns: Vec<String>Include patterns (glob)
exclude_patterns: Vec<String>Exclude patterns (glob)
debounce_ms: u64Debounce duration for the file watcher (milliseconds)
max_file_size: u64Maximum file size to index (bytes)
force: boolSkip the content-hash short-circuit and reindex every eligible file
Index hidden files and directories under the root (--include-hidden).
Does not disable the secret-file denylist.
include_secret_files: boolIndex files that match the built-in secret denylist.
honor_gitignore: boolHonour .gitignore / .ignore under the index root only (no parents,
no global gitignore).
purge_excluded: boolDelete store rows whose paths are now excluded, on every index/scan.
min_alnum_chars: usizeMinimum Unicode letters / decimal digits before embedding.
Implementations§
Source§impl IndexerConfig
impl IndexerConfig
Sourcepub fn exclusion_options(&self) -> ExclusionOptions
pub fn exclusion_options(&self) -> ExclusionOptions
Options consumed by ExclusionMatcher.
Sourcepub fn matcher(&self, root: &Path) -> ExclusionMatcher
pub fn matcher(&self, root: &Path) -> ExclusionMatcher
Matcher bound to root (hidden-root exception, secrets, gitignore).
Sourcepub fn should_process_path(&self, path: &Path) -> bool
pub fn should_process_path(&self, path: &Path) -> bool
Whether path is eligible when the index root is unknown.
Prefer Self::should_process_path_in so a hidden index root is kept.
Sourcepub fn should_process_path_in(&self, path: &Path, root: &Path) -> bool
pub fn should_process_path_in(&self, path: &Path, root: &Path) -> bool
Whether path is eligible under root.
Trait Implementations§
Source§impl Clone for IndexerConfig
impl Clone for IndexerConfig
Source§impl Debug for IndexerConfig
impl Debug for IndexerConfig
Auto Trait Implementations§
impl Freeze for IndexerConfig
impl RefUnwindSafe for IndexerConfig
impl Send for IndexerConfig
impl Sync for IndexerConfig
impl Unpin for IndexerConfig
impl UnsafeUnpin for IndexerConfig
impl UnwindSafe for IndexerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().