freehire-search: lean search uses the web endpoint; drop unread params (#631)

semantic_ratio and include_description are both reported in
meta.ignored_params. With include_description ignored, the agent endpoint
hydrates every full body from the database, and --no-description threw
that payload away client-side. Send --no-description to /api/v1/jobs/search,
which serves only the preview, and stop sending the two unread params.
This commit is contained in:
Ilya Strelov authored and GitHub committed 2026-10-18 21:38:40 +02:00
1 parent ce9b656829
commit 0f6480d32e
6 files changed
+31 -27

No files matched your search

+2 -1
View File
@@ -196,6 +196,7 @@ dictionaries never guess). So:
live values (with counts) for a query before filtering.
- The API retries 429/5xx with exponential backoff; an unreachable API exits
non-zero with a clear message (best-effort service, see the dependency note above).
- `search` calls `/api/v1/agent/jobs/search` (public, like the rest). A self-hosted
- `search` calls `/api/v1/agent/jobs/search` (public, like the rest); `--no-description`
calls the lighter `/api/v1/jobs/search`, which serves no full bodies. A self-hosted
instance older than that endpoint answers 404, and the CLI reports it as an error
naming the endpoint — never as an empty result set.