All posts
Insights

The comma means OR, except for skill

taxonomies=software,healthcare is a union. Why the comma means OR on every multi-value filter but one, and why skill intersects.

HyperJobs Team6 min read

BASH
curl "…/v1/jobs?taxonomies=software,healthcare"   # → the union: health-tech and everything beside it

That query means what it looks like it means: postings tagged software or healthcare. The comma reads like OR in every faceted search you have ever used, and here it is OR.

The alternative is worth a moment, because some APIs do it. Read that comma as AND and the same request returns the near-empty intersection of two job families, wearing the costume of a market insight about how rare health-tech hiring is. The number is plausible, the semantics are wrong, and nothing in the response says so. That's why the comma here means what you expect.

One comma, two meanings

SyntaxMeans
Between filters?skill=rust&has_salary=trueAND: both conditions hold
Inside a filter?seniority=director,executiveOR: either value matches
Inside skill (the exception)?skill=rust,kubernetesAND: both tokens on the posting

Parameters AND with each other; values inside a parameter OR with each other; and skill, uniquely, intersects its list. A wrong enum member in any comma list fails loud rather than plausible: a 400 naming the allowed values, not a silent zero.

Why this shape? Look at what the fields are.

Enum fields hold one value per posting. A job has one seniority, one work_arrangement, one language. AND across seniority=director,executive is not a stricter query: it is a contradiction, and it returns zero rows forever. AND semantics would make the most natural multi-value query on these fields unsatisfiable by construction. Even employment_type, which is technically an array, is nearly always a single value: full_time,internship as an intersection described a paid full-time internship, a population of approximately nobody. On single-valued vocabulary, the only combination worth expressing is the union, so that is what the comma builds.

Skills compose. A posting carries many skill tokens, and real requirements stack: skill=react,typescript,graphql (a role that needs all three) is the query people actually write, one condition at a time, the way a job spec is written. Make skill an OR and that query becomes unwritable in one request, while the union it would buy ("React shops or TypeScript shops") is the rarer need. Requirements intersect; categories union. The comma follows the data.

Every AND is still a coverage filter

The deep cost of a filter is not the comma. It's this.

A filter on skill does not just select postings with that skill. It selects postings that were classified for skills at all, and then, within those, the ones carrying your token. The postings nobody classified are not "unknown"; they are gone, silently, before your value is ever compared.

Every field has a fill rate, and coverage_pct on /v1/meta publishes them live. Read those as filter costs, because that is what they are. No query containing skill= can see a posting that carries no skills; has_salary=true, on the sparsest field of all (well under half of postings state a salary), discards most of the catalogue before your other filters apply. Stack three classifiers and the result is far smaller than any of them, and you cannot compute how much smaller from the percentages, because you do not know how the classifiers correlate. The rates are published. The correlations can't be.

So the rule from skills & taxonomies stands, and OR makes it easy to follow: don't stack classifiers defensively. Adding taxonomies=software to a skill=rust query to "make sure" does not make the result more correct: it throws away every Rust posting that carries no taxonomy, and those postings were not less Rust-shaped. They were less classified. Use taxonomies to scope, with a comma-union wide enough to be honest: taxonomies=software,technology,engineering is one request, not a defensive intersection.

A null is not a no

The same mistake in a different costume.

visa_sponsorship: null means the posting was silent, not that sponsorship is unavailable. education: null means no stated requirement, not "no degree required". Many postings simply do not say.

An AND on a sparse field is a much stronger statement than it looks

?education=bachelor_degree does not mean "roles where a bachelor's is enough". It means "roles that explicitly wrote down a bachelor's requirement", which excludes every job that never mentioned education, most of which would happily take one.

The filter is testing what the posting said, not what the employer wants. Those are different populations, and only one of them is in the index. (visa_sponsorship=only|exclude has the same property: exclude keeps the silent majority, it doesn't certify anything.)

Leadership is one request

"Leadership roles" are two distinct seniority values, neither containing the other: the top of the ladder is director and executive. That costs a comma:

BASH
curl "…/v1/jobs?seniority=director,executive"

The same holds across the classifiers. software, technology and engineering are three separate taxonomies, none implying another, and "technical roles, broadly" is one parameter. No merge-and-dedupe loop keyed by id, no double-counting, no fanning out several requests per user search: the punctuation does it.

Where you still fan out

One intersection is deliberate, and its union has a parameter of its own: skill_any. skill=rust,kubernetes means both; "Rust or Go" is skill_any=rust,go, one request, no merge on id:

BASH
# "(Rust or Go) and Kubernetes": the OR in skill_any, the AND in skill.
curl "…/v1/jobs?skill_any=rust,go&skill=kubernetes"

If the OR you want is over title words rather than skill tags, you don't need a skill parameter at all: title=rust OR go is Google-style search, and title_advanced=(rust | go) & !intern gives you grouping and negation in one request.

The thing you still cannot say in one request is OR across different parameters: "remote, or pays over 150k" spans two fields, and parameters AND. That one is fan-out by design, and it's rare enough to deserve being visible in your code when you mean it.

Where the line is

A filter language with free OR, grouping and negation everywhere is a query language, and a query language is hard to read from a URL. So the general machinery has a fenced-off home: free grouping and negation live in *_advanced search; structured negation is a handful of purpose-built parameters (exclude_organization, exclude_source, exclude_taxonomies, visa_sponsorship=exclude and their kin) rather than a ! you can attach anywhere.

The comma union on enum fields doesn't need a fence. It's the simplest disjunction there is, and it's the one people reach for first.

The semantics you can check by reading the URL are the ones worth having. They say OR, out loud, everywhere except the one place requirements really do intersect.

The full filter vocabulary and every matching rule are in filtering jobs.