reference-query 0.58.0

Reference Query — find the code you're looking for.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Dogfood misses

Queries where rq, used for real work, missed the definition or ranked it below
#1. Each entry: the query, the repo, what was meant, where it ranked. Fixed
entries move into the recall set (`script/recall.py`) and out of this list.

| query | repo | meant | rank | notes |
|---|---|---|---|---|
| `braboost` | rq | `BRANCH_DIR_BOOST` | not found; `branch_boost_adds_to_the_score` (a test) #1 | Dogfood set. The test now takes the test-scope penalty (D33). The source still isn't found: a first+last query across SCREAMING words, which is core-search's |
| `clock` | rq | the `clock` module (`src/core/clock.rs`) | absent; `tests · clock` #1 | Dogfood set. Module files aren't symbols. `tests` now ranks below as test code (D33). A module symbol was tried and not adopted (D34) |
| `block_on` | tokio | `Runtime::block_on` / `Handle::block_on` | #9 | Rust tester. `pub(crate)` impls and `future/block_on.rs` rank above. D35 measured a `pub(crate)` penalty and left it out. A regress case |
| `prsnch` | rq | `parse_anchor` | not found | Dogfood set. A consonant skeleton that skips a word-initial vowel (`a`nchor) crosses the mid-word gap limit. Generic fuzzy behaviour, not Rust |
| `also_in` | rq | the `Hit.also_in` field (`src/search/mod.rs`) | not found | Extraction-gaps lane. Struct fields aren't symbols in any plugin, so a JSON field's source is found only with `rg`. A known scope choice, not a ranking miss |
| `process` | @types/node | `declare var process` (`globals.d.ts`) | #3, behind `interface Process` and `declare module "process"` | Extraction-gaps lane. Found since D38; an all-lowercase query gives the interface no `case` penalty, and `kind` weighs trait 15, module 12, constant 0. Generic kind weighting, not TS |
| `grep_searcher::Searcher` | ripgrep | `Searcher` in `crates/searcher/` | `scope_not_found`, `found_in` names it | D27's limit: a crate named other than its directory. Crate names from manifests weighed and declined (D39) |