Expand description
Minimal fuzzy score core for commands, paths, and short identifiers.
This crate focuses on pure scoring and ranking only. Filesystem indexing, caches, watchers, and UI rendering stay outside the crate.
Structs§
- Corpus
Stats - Match
- Ranked candidate returned from
top_kvariants. - Owned
Prepared Candidate - 永続化やキャッシュ再利用向けの所有 candidate。
- Prepared
Candidate - 繰り返しマッチング用に前処理した借用 candidate。
- Prepared
Candidate Header - Prepared
Candidate Ref - cache-backed 実行向けの借用 view。
- Prepared
Query - Query prepared for repeated matching.
- Score
- Fuzzy score summary for a single query/candidate pair.
- Score
Config - エネルギーモデルの重みと変換係数をまとめた設定です。
- Scratch
- Reusable working storage for repeated matching.
Enums§
Constants§
- PREPARED_
CANDIDATE_ ALGORITHM_ VERSION - PREPARED_
CANDIDATE_ FORMAT_ VERSION - VALUE_
SCALE - energy を互換性のある整数 value に変換するときの尺度です。
Functions§
- candidate_
fingerprint - match_
indices - Write matched character byte offsets into
out. - match_
indices_ prepared - Write matched character byte offsets into
outusing prepared inputs. - match_
indices_ prepared_ ref - Write matched character byte offsets into
outusing a borrowed prepared candidate view. - score
- Score a candidate with the default case-insensitive matcher.
- score_
case_ sensitive - Score a candidate with case-sensitive matching.
- score_
case_ sensitive_ with_ config - Score a candidate with case-sensitive matching and an explicit score config.
- score_
prepared - Score a prepared candidate with a prepared query.
- score_
prepared_ owned - Score an owned prepared candidate with a prepared query.
- score_
prepared_ owned_ with_ config - Score an owned prepared candidate with explicit config.
- score_
prepared_ owned_ with_ corpus - Score an owned prepared candidate with explicit config and corpus stats.
- score_
prepared_ ref - Score a borrowed prepared candidate view with a prepared query.
- score_
prepared_ ref_ with_ config - Score a borrowed prepared candidate view with explicit config.
- score_
prepared_ ref_ with_ corpus - Score a borrowed prepared candidate view with explicit config and corpus stats.
- score_
prepared_ with_ config - Score a prepared candidate with a prepared query and explicit config.
- score_
prepared_ with_ corpus - Score a prepared candidate with a prepared query, config, and corpus stats.
- score_
with_ config - Score a candidate with an explicit score config.
- score_
with_ corpus - Score a candidate with an explicit score config and corpus statistics.
- top_k
- Rank the top
limitcandidates and write them intoout. - top_
k_ prepared - Rank the top
limitprepared candidates and write them intoout. - top_
k_ prepared_ refs - Rank the top
limitprepared candidate views and write them intoout. - top_
k_ prepared_ refs_ with_ config - Rank the top
limitprepared candidate views with explicit config. - top_
k_ prepared_ refs_ with_ corpus - Rank the top
limitprepared candidate views with explicit config and corpus stats. - top_
k_ prepared_ with_ config - Rank the top
limitprepared candidates with explicit config. - top_
k_ prepared_ with_ corpus - Rank the top
limitprepared candidates with explicit config and corpus stats. - top_
k_ with_ config - Rank the top
limitcandidates with an explicit config. - top_
k_ with_ corpus - Rank the top
limitcandidates with explicit config and corpus stats.