mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-08 16:07:40 +00:00
fix(jobnet-search): filter search by the ESCO occupation that occupations prints (#649)
* fix(jobnet-search): filter search by the ESCO occupation that occupations prints SKILL.md and the CLI README told users to pass the conceptUriDa UUID from `occupations` to `search --occupation-area` / `--occupation-group`. Those flags take the numeric area and group codes (10000, 10060), so a UUID there returned a successful search with zero ads. The API filters one occupation through its `occupations` parameter, which returns the 830 nurse ads for the sygeplejerske UUID. Add `search --occupation`, sent as `occupations`, accepting the full conceptUriDa or its trailing UUID, and point the docs at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * changelog: place the #649 entry under [Unreleased] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com>
This commit is contained in:
5 files changed
+107
-4
No files matched your search
@@ -59,6 +59,7 @@ Key flags:
|
||||
- `--job-type <type>` — `Ordinaert`, `Efterloenner`, `Foertidspension`
|
||||
- `--occupation-area <id>` — occupation area identifier, e.g. `10000`
|
||||
- `--occupation-group <id>` — occupation group identifier, e.g. `10060`
|
||||
- `--occupation <uuid>` — one ESCO occupation: the `conceptUriDa` printed by `occupations`, or its trailing UUID
|
||||
- `--order <type>` — `PublicationDate` (default), `BestMatch`, `ApplicationDate`
|
||||
- `--page / --per-page / --limit`
|
||||
- `--format json|table|plain`
|
||||
@@ -79,7 +80,8 @@ bun run .agents/skills/jobnet-search/cli/src/cli.ts occupations --search-string
|
||||
```
|
||||
|
||||
Use this to discover ESCO occupation identifiers before passing them to `search` with
|
||||
`--occupation-area` or `--occupation-group`.
|
||||
`--occupation`. The numeric `--occupation-area` / `--occupation-group` codes are a different
|
||||
taxonomy: an occupation UUID passed there matches no ads.
|
||||
|
||||
### Typeahead suggestions
|
||||
|
||||
@@ -100,6 +102,7 @@ term or ESCO identifier before running a `search`:
|
||||
```bash
|
||||
bun run .agents/skills/jobnet-search/cli/src/cli.ts suggestions --query "syge"
|
||||
bun run .agents/skills/jobnet-search/cli/src/cli.ts occupations --search-string "sygeplejerske"
|
||||
bun run .agents/skills/jobnet-search/cli/src/cli.ts search --occupation http://data.star.dk/esco/occupation/56f5d45c-ce48-43ac-9720-34831a1c8302
|
||||
```
|
||||
|
||||
**Natural workflow: `search` → `detail`.**
|
||||
|
||||
Reference in new issue
Block a user