Skip to main content

Crate ck_core

Crate ck_core 

Source

Modules§

heatmap
pdf
PDF-specific utilities

Structs§

FileCollectionOptions
Configuration for file collection during indexing and search operations. This struct encapsulates all settings related to which files should be included or excluded when traversing a directory tree.
FileMetadata
IncludePattern
JsonSearchResult
JsonlSearchResult
SearchOptions
SearchResult
SearchResults
Enhanced search results that include near-miss information for threshold queries
SearchSignals
Span

Enums§

CkError
Language
SearchMode

Constants§

INDEX_DIR_ENV
Environment variable that relocates ck’s per-root index directories out of the source tree. See index_dir.

Functions§

build_exclude_patterns
Build exclusion patterns with proper priority ordering
check_index_root_marker
Verify that an existing relocated index directory belongs to root.
compute_chunk_hash
Compute blake3 hash of chunk content for incremental indexing This enables us to detect which chunks have changed and only re-embed those
compute_file_hash
create_ckignore_if_missing
Create .ckignore file with default content if it doesn’t exist
get_default_ckignore_content
Get default .ckignore file content
get_default_exclude_patterns
Get default exclusion patterns for directories that should be skipped during search. These are common cache, build, and system directories that rarely contain user code.
get_sidecar_path
index_dir
Returns the directory that holds ck’s index and sidecar files for a search root.
index_exists
Returns true if the index directory for root (see index_dir) exists.
read_ckignore_patterns
Read and parse .ckignore file, returning patterns
write_index_root_marker
Record which search root a relocated index directory belongs to.

Type Aliases§

Result