chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
Docs say how a code search orders files scored alike
Merged Approved
This is a docs-only change. It rewords the searchCode ordering sentence in api.md. It also adds a note to serve.md saying that files tied at Zoekt's 200th place are the only ones whose order can vary between asks. The note's logic holds. Each page asks Zoekt for the best 200 and sorts ties by repository and path, so only the tied files cut at the boundary can differ. Those land in the last page's tail. I didn't check the claim against the search code. I found nothing to change. AGENTS.md asks for no other files with this kind of change, and the docs check covers links.
All checks have passed
8 passed, 2 skipped
Merged as cd22335
What changes
api.mdsays more plainly howsearchCodeorders files scored alike: by repository, then path.serve.mdadds the one place that order can still vary. Zoekt cuts at the 200th file, and files tied exactly there can differ from one ask to the next, so only the last page's last files may change.Why
These are the review's notes on A code search's pages go on from the one before: the api.md sentence read awkwardly, and the design note didn't say where the fixed order stops holding.
How it was checked
Docs only, and
docsruns on it.🤖 Generated with Claude Code