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).

Modules§

lexicon
Sorted trigram → postings slice descriptor.
postings
Contiguous u32 LE file-id payloads referenced by the lexicon.

Structs§

CompiledSearch
Index
IndexBuilder
Match
QueryPlan
SearchMatchFlags
SearchOptions
Walk
Walk is a recursive directory iterator over file paths in one or more directories.
WalkBuilder
WalkBuilder builds a recursive directory iterator.

Enums§

Error
TrigramPlan
Trigram-based narrowing plan, or fall back to scanning the whole corpus.

Constants§

FILES_BIN
LEXICON_BIN
META_FILENAME
POSTINGS_BIN

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
All readable file paths under root (respecting ignore rules), relative to root.

Type Aliases§

Result