pub struct IndexConfig {
pub respect_gitignore: bool,
pub exclude: Vec<String>,
pub include: Vec<String>,
}Expand description
Index-time file filters (#735): declare the retrieval corpus explicitly
instead of abusing .gitignore for retrieval policy.
Applies to every index builder through one shared filter layer
(core::index_filter): BM25, graph, and the watch/incremental path; the
semantic index chunks the BM25 corpus and inherits the same universe.
Excluded files never produce chunks, graph nodes, or embeddings. Globs are
matched against the root-relative path (forward slashes); exclude wins
over include. The empty default preserves today’s behavior byte-for-byte.
Fields§
§respect_gitignore: boolHonor .gitignore / global gitignore / .git/info/exclude during
index walks. false indexes ignored files too (rarely wanted; the
vendor-directory guard still applies).
exclude: Vec<String>Files to drop from the index corpus, e.g. ["**/*.csv", "fixtures/**"].
Evaluated after include; a file matching both is excluded.
include: Vec<String>When non-empty, ONLY matching files enter the index corpus, e.g.
["**/*.rs", "**/*.ts"]. Empty = no restriction.
Trait Implementations§
Source§impl Clone for IndexConfig
impl Clone for IndexConfig
Source§fn clone(&self) -> IndexConfig
fn clone(&self) -> IndexConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IndexConfig
impl Debug for IndexConfig
Source§impl Default for IndexConfig
impl Default for IndexConfig
Source§impl<'de> Deserialize<'de> for IndexConfigwhere
IndexConfig: Default,
impl<'de> Deserialize<'de> for IndexConfigwhere
IndexConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnsafeUnpin for IndexConfig
impl UnwindSafe for IndexConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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