Skip to main content

Crate sift_core

Crate sift_core 

Source
Expand description

Fast indexed regex search over codebases — core engine.

Walking: WalkBuilder from the ignore crate (ripgrep-class ignore rules).

Re-exports§

pub use storage::lexicon;
pub use storage::postings;

Modules§

storage
On-disk tables for the trigram index.

Structs§

CandidateInfo
Pre-computed candidate for efficient batch filtering and search.
CompiledSearch
GlobConfig
IgnoreConfig
IgnoreSources
Index
In-memory trigram index backed by memory-mapped storage.
IndexBuilder
Match
QueryPlan
SearchFilter
SearchFilterConfig
SearchMatchFlags
SearchOptions
SearchOutput
VisibilityConfig
Walk
Walk is a recursive directory iterator over file paths in one or more directories.
WalkBuilder
WalkBuilder builds a recursive directory iterator.

Enums§

CaseMode
CorpusKind
Error
FilenameMode
HiddenMode
OutputEmission
SearchMode
TrigramPlan
Trigram-based narrowing plan, or fall back to scanning the whole corpus.

Constants§

FILES_BIN
INDEX_SUBDIR
LEXICON_BIN
META_FILENAME
POSTINGS_BIN
SIFT_DIR

Functions§

compile_pattern
Build a Regex for a single pattern.
compile_search_pattern
Build a combined Regex from one or more patterns.
extract_trigrams
Extract overlapping 3-byte windows from text, handling invalid UTF-8 with lossy replacement.
walk_file_paths
Errors

Type Aliases§

Result