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.

Re-exports§

pub use candidate::Candidate;
pub use query::CandidateRequirement;
pub use query::QueryFlags;
pub use query::QueryPlanner;
pub use query::QuerySpec;

Modules§

candidate
grep
Grep pipeline orchestration.
query

Structs§

CandidateFilter
CandidateFilterConfig
ColumnLimit
CorpusSpec
Description of a corpus to index.
FileId
GlobConfig
IgnoreConfig
IgnoreSources
IndexConfig
Configuration for building or updating an index over a corpus.
IndexId
IndexStore
Index lifecycle orchestrator backed by a [SnapshotStore] for atomic persistence and coordination.
Indexes
Registry of opened indexes read from a snapshot store.
LineStyleFlags
Match
PatternCompiler
QueryPlanOutput
SearchLineStyle
SearchMatchFlags
SearchOptions
SearchOutcome
SearchOutput
SearchQuery
SearchRecordStyle
SearchSeparators
SearchStats
StoreMeta
Persistent corpus configuration for an index store.
TrigramIndex
TypeDef
VisibilityConfig
Walk
Walk is a recursive directory iterator over file paths in one or more directories.
WalkBuilder
WalkBuilder builds a recursive directory iterator.
WalkOptions

Enums§

BinaryMode
CaseMode
ColorChoice
ColumnOverflow
CorpusKind
Whether the index was built from a directory or a single file.
Error
Top-level umbrella error for all core operations.
FilenameMode
HiddenMode
Index
An opened index instance, used for search-time dispatch.
IndexError
Errors specific to the index registry layer.
IndexKind
Tag identifying an index kind for lifecycle dispatch (build, open, update).
LinkTraversal
MatchEmissionMode
OutputEmission
PassthruMode
PathDisplay
PlanMode
How an index query plan resolves candidates.
RecordTerminator
SearchError
SearchMode
SearchOutputFormat
TrigramIndexError
Errors specific to opening or persisting a trigram index.
ZeroCountMode

Constants§

FILES_BIN
LEXICON_BIN
POSTINGS_BIN
SIFT_DIR
TRIGRAMS_BIN

Functions§

discover_files
Discovers files under the given root matching the walk options.

Type Aliases§

Result