Seltz ranks by meaning, not boolean logic
Seltz ranks by meaning, so OR, minus signs and quotes don’t filter. Here’s how to get OR behavior by fanning out searches and merging.
Product
Nov 17, 2026

Max V


Seltz doesn’t support OR, or any other search operator. It ranks results by meaning instead of filtering them with boolean logic, so a query like Nvidia OR AMD earnings returns articles that discuss both companies, not Nvidia results plus AMD results. This post covers why, what goes wrong when agents use operators, and a short recipe that gets you OR behavior anyway.
What happens when you type OR
We ran Nvidia OR AMD earnings on the news scope over the last 14 days with 5 results. Every result compared Nvidia and AMD. Then we ran Nvidia earnings and AMD earnings on their own. Each returned 5 different articles, and none of them appeared in the OR results.
Query | What came back |
|---|---|
| 5 articles comparing both companies |
| 5 Nvidia earnings articles, none in the OR set |
| 5 AMD earnings articles, none in the OR set |
The OR query behaved like AND. Ranking by meaning does this with any query that mentions two things: the documents closest to Nvidia, AMD and earnings together are the ones that cover all three.
The fix is to send one short query per thing you want, run them in parallel, and merge the results yourself. The rest of this post shows why, and gives you the code.
Boolean filtering and semantic ranking are different things
Search boxes have taught people for decades that operators control the result set. In a boolean system they do. Seltz works differently.
Boolean search | Seltz (semantic ranking) | |
|---|---|---|
What the query is | A set of rules | A description of what you want |
How results are chosen | Documents either match the rules or are dropped | All documents are scored by closeness in meaning, best first |
What | Unions two sets | Nothing special, it’s just a word |
What | Removes documents containing the term | Nothing special, it pulls the term’s meaning toward the query |
Two topics in one query | You get documents matching either | You get documents closest to both together |
Result order | Often arbitrary or by recency | Most relevant first |
A boolean query works like a bouncer with a list: you’re on it or you’re out. A semantic query works like a pointer on a map, and Seltz returns whatever sits closest to where you pointed. Point at the midpoint between Nvidia and AMD and the closest pages are the ones about both.
We tested OR and the minus sign directly. Seltz doesn’t support |, parentheses, quoted phrases or field operators either. It treats all of them as ordinary words, and they can pull results the wrong way.
Three things that go wrong when you use operators
1. OR becomes “both,” so you get hybrids. robotics OR biotech Boston on the companies scope returned 5 of 5 companies that sit between the two fields: a robotic lab, a bio-robot developer, lab-automation robots. Searching robotics Boston and biotech Boston separately returned pure robotics companies and pure biotech companies, with no overlap with the OR set. fintech OR healthtech did the same thing and returned only health-fintech companies.
2. The minus sign boosts instead of excluding. fintech startup -healthtech returned health-fintech companies such as DR.PAY, Ness and RhazesPay. The word “healthtech” pulled results toward healthtech, the opposite of what the minus sign promises.
3. Place names match anywhere on a profile. On the people scope, product manager London OR Berlin returned only people whose location is London. Two of the three also held Berlin jobs, and no Berlin-based profile appeared. product manager Berlin alone returned only Berlin-based people.
Across about 14 OR queries on news, companies and people, each paired with single-term controls, none behaved as a union. Operators don’t fail loudly. They return plausible results that quietly miss half of what you asked for.
The replacement: fan out, then merge
To get OR behavior, split the OR into separate searches and combine the results in your own code. There are four steps:
Write one short keyword query per variant, such as
Nvidia earningsandAMD earnings.Run them in parallel. In testing we ran 65 concurrent searches with no errors or throttling.
Take the union and remove duplicates by URL.
Rank documents returned by several queries first, then by their best position in any single list.
Each query is short and specific, so each one returns focused results for its own variant, and your code does the job the OR operator promised.
The examples below are mock code. They show the pattern against a placeholder seltz client, so swap in your real client or MCP tool call and check parameter names against the API reference.
Python (mock)
import asyncio from collections import defaultdict # Placeholder client. Replace with your real Seltz client or MCP tool call. from seltz_client import seltz # mock import async def search_one(query: str, scope: str, max_results: int): """One short keyword query -> list of result dicts with at least a 'url'.""" return await seltz.search(query=query, scope=scope, max_results=max_results) async def search_any(queries: list[str], scope: str = "news", want: int = 10): """Behaves like q1 OR q2 OR ...: union of results, deduped by URL.""" per_query = min(50, want * 4) # over-fetch: yield per query is lower than you expect # 1. Run all variants in parallel. lists = await asyncio.gather( *(search_one(q, scope, per_query) for q in queries) ) # 2. Union + dedupe by URL, tracking how many queries hit each URL # and the best (lowest) position it reached in any list. hits = defaultdict(int) best_rank = {} by_url = {} for results in lists: for rank, r in enumerate(results): url = r["url"] by_url.setdefault(url, r) hits[url] += 1 best_rank[url] = min(best_rank.get(url, rank), rank) # 3. Multi-hit documents first, then best single-list position. ordered = sorted(by_url, key=lambda u: (-hits[u], best_rank[u])) return [by_url[u] for u in ordered[:want]] # Usage: the OR you meant when you wrote "Nvidia OR AMD earnings" results = asyncio.run( search_any(["Nvidia earnings", "AMD earnings"], scope="news", want=10) ) for r in results: print(r["url"])
TypeScript (mock)
// Placeholder client. Replace with your real Seltz client or MCP tool call. import { seltz } from "./seltz-client"; // mock import type Result = { url: string; title?: string; [k: string]: unknown }; async function searchAny( queries: string[], scope = "news", want = 10, ): Promise<Result[]> { const perQuery = Math.min(50, want * 4); // over-fetch: yield per query is lower than you expect // 1. Run all variants in parallel. const lists: Result[][] = await Promise.all( queries.map((q) => seltz.search({ query: q, scope, max_results: perQuery })), ); // 2. Union + dedupe by URL, counting hits and tracking best position. const byUrl = new Map<string, Result>(); const hits = new Map<string, number>(); const bestRank = new Map<string, number>(); for (const results of lists) { results.forEach((r, rank) => { if (!byUrl.has(r.url)) byUrl.set(r.url, r); hits.set(r.url, (hits.get(r.url) ?? 0) + 1); bestRank.set(r.url, Math.min(bestRank.get(r.url) ?? rank, rank)); }); } // 3. Multi-hit documents first, then best single-list position. return [...byUrl.keys()] .sort( (a, b) => hits.get(b)! - hits.get(a)! || bestRank.get(a)! - bestRank.get(b)!, ) .slice(0, want) .map((u) => byUrl.get(u)!); } // Usage: the OR you meant when you wrote "Nvidia OR AMD earnings" const results = await searchAny(["Nvidia earnings", "AMD earnings"], "news", 10); results.forEach((r) => console.log(r.url));
One caution on the ranking step. A document returned by both queries is probably a comparison piece, which may or may not be what you want. If you’d rather have a balanced mix of each variant, interleave the lists round-robin instead of sorting by hit count.
For agent builders: paste this into your agent
Most operator queries come from agents, not people. Models have seen decades of boolean syntax, so they reach for it by default. Tell the agent once in its instructions, and give it a tool that does the fan-out for it.
Instruction block for your system prompt
Give the agent a fan-out tool (mock)
Exposing search_any as a single tool means the model never has to decide how to emulate OR. It passes a list, and your code does the rest. The schema below is a mock in the common function-calling shape.
{ "name": "seltz_search_any", "description": "Search Seltz for several alternatives at once (an OR). Pass one short keyword query per alternative. Runs them in parallel, merges, dedupes by URL. Do not put OR, quotes or minus signs in any query.", "input_schema": { "type": "object", "properties": { "queries": { "type": "array", "items": { "type": "string" }, "description": "One short keyword query per alternative, e.g. [\"Nvidia earnings\", \"AMD earnings\"]" }, "scope": { "type": "string", "enum": ["web", "news", "companies", "people", "financial-reports", "wikipedia"] }, "want": { "type": "integer", "description": "Total merged results to return (default 10)" } }, "required": ["queries"] } }
The handler behind that tool is the search_any function from the previous section.
Exclusions and location: filter after you search
The minus sign boosts the word it was meant to remove, so exclusions can’t go in the query. Search first, then filter the results in code. The same approach fixes the location problem. The people and companies scopes return structured objects with a location or headquarters field, and that field is more reliable than a city word in the query.
The example below is mock code. It finds product managers in London or Berlin by fanning out, keeps only profiles whose location field matches, and drops anyone at an excluded company.
import asyncio from seltz_client import seltz # mock import CITIES = ["London", "Berlin"] EXCLUDE_COMPANIES = {"acme corp"} # the job of "-AcmeCorp", done after the search async def product_managers_in(cities, want=20): # One short query per city. No OR, no quotes, no minus signs. lists = await asyncio.gather(*( seltz.search(query=f"product manager {c}", scope="people", max_results=50) for c in cities )) seen, kept = set(), [] for results in lists: for r in results: if r["url"] in seen: continue seen.add(r["url"]) person = r.get("person", {}) location = person.get("location", "") # Post-filter 1: the structured location must match a requested city. if not any(c.lower() in location.lower() for c in cities): continue # Post-filter 2: exclusion. Check current employers only. current = { e["company"].lower() for e in person.get("experience", []) if e.get("is_current") } if current & EXCLUDE_COMPANIES: continue kept.append(r) return kept[:want] people = asyncio.run(product_managers_in(CITIES))
Two notes on this pattern. Because the post-filter discards results, request the maximum per query (up to 50) and let the filter trim. And the people and companies scopes have no publication dates, so from_date and to_date return an error there. Use them on scopes that have dates, such as news.
Cost, limits and quick reference
Fan-out multiplies your call count, so here’s what we measured.
Concurrency: 65 searches fired in parallel across the news and Wikipedia scopes all succeeded. About 95 calls in total produced no errors or throttling.
Result cap:
max_resultstops out at 50. Asking for 51 returns 50 with no error.Repeatability: Running the same query twice returned the same results in the same order.
Call count: Each variant is one search call, so ten variants means ten calls. We didn’t find a rate limit in testing, but we didn’t push for a ceiling either.
Quick reference
You wanted | Don’t write | Do this instead |
|---|---|---|
A or B |
| Search |
A but not B |
| Search |
Several cities |
| One query per city, then filter on the |
Exact phrase |
| Describe it in plain words: |
Grouped logic |
| One query per combination: |
FAQ
How do I get OR behavior in Seltz?
Send one short keyword query per alternative, run them in parallel, then merge the results and remove duplicates by URL. Rank documents returned by several queries first.
Why do operators sometimes seem to work?
A query like Nvidia OR AMD often returns documents about both companies, which looks like a sensible answer. It happens because of how meaning is matched, not because Seltz reads the operator.
How short should each query be?
A few concrete keywords. Natural-language sentences carry extra words that dilute the meaning being matched.
How we tested
We ran about 14 OR queries across the news, companies and people scopes, each paired with single-term control queries, plus negation tests and a 65-call parallel load test. The sample is small and meant to illustrate the pattern, not to measure a rate.
Seltz doesn’t support OR, or any other search operator. It ranks results by meaning instead of filtering them with boolean logic, so a query like Nvidia OR AMD earnings returns articles that discuss both companies, not Nvidia results plus AMD results. This post covers why, what goes wrong when agents use operators, and a short recipe that gets you OR behavior anyway.
What happens when you type OR
We ran Nvidia OR AMD earnings on the news scope over the last 14 days with 5 results. Every result compared Nvidia and AMD. Then we ran Nvidia earnings and AMD earnings on their own. Each returned 5 different articles, and none of them appeared in the OR results.
Query | What came back |
|---|---|
| 5 articles comparing both companies |
| 5 Nvidia earnings articles, none in the OR set |
| 5 AMD earnings articles, none in the OR set |
The OR query behaved like AND. Ranking by meaning does this with any query that mentions two things: the documents closest to Nvidia, AMD and earnings together are the ones that cover all three.
The fix is to send one short query per thing you want, run them in parallel, and merge the results yourself. The rest of this post shows why, and gives you the code.
Boolean filtering and semantic ranking are different things
Search boxes have taught people for decades that operators control the result set. In a boolean system they do. Seltz works differently.
Boolean search | Seltz (semantic ranking) | |
|---|---|---|
What the query is | A set of rules | A description of what you want |
How results are chosen | Documents either match the rules or are dropped | All documents are scored by closeness in meaning, best first |
What | Unions two sets | Nothing special, it’s just a word |
What | Removes documents containing the term | Nothing special, it pulls the term’s meaning toward the query |
Two topics in one query | You get documents matching either | You get documents closest to both together |
Result order | Often arbitrary or by recency | Most relevant first |
A boolean query works like a bouncer with a list: you’re on it or you’re out. A semantic query works like a pointer on a map, and Seltz returns whatever sits closest to where you pointed. Point at the midpoint between Nvidia and AMD and the closest pages are the ones about both.
We tested OR and the minus sign directly. Seltz doesn’t support |, parentheses, quoted phrases or field operators either. It treats all of them as ordinary words, and they can pull results the wrong way.
Three things that go wrong when you use operators
1. OR becomes “both,” so you get hybrids. robotics OR biotech Boston on the companies scope returned 5 of 5 companies that sit between the two fields: a robotic lab, a bio-robot developer, lab-automation robots. Searching robotics Boston and biotech Boston separately returned pure robotics companies and pure biotech companies, with no overlap with the OR set. fintech OR healthtech did the same thing and returned only health-fintech companies.
2. The minus sign boosts instead of excluding. fintech startup -healthtech returned health-fintech companies such as DR.PAY, Ness and RhazesPay. The word “healthtech” pulled results toward healthtech, the opposite of what the minus sign promises.
3. Place names match anywhere on a profile. On the people scope, product manager London OR Berlin returned only people whose location is London. Two of the three also held Berlin jobs, and no Berlin-based profile appeared. product manager Berlin alone returned only Berlin-based people.
Across about 14 OR queries on news, companies and people, each paired with single-term controls, none behaved as a union. Operators don’t fail loudly. They return plausible results that quietly miss half of what you asked for.
The replacement: fan out, then merge
To get OR behavior, split the OR into separate searches and combine the results in your own code. There are four steps:
Write one short keyword query per variant, such as
Nvidia earningsandAMD earnings.Run them in parallel. In testing we ran 65 concurrent searches with no errors or throttling.
Take the union and remove duplicates by URL.
Rank documents returned by several queries first, then by their best position in any single list.
Each query is short and specific, so each one returns focused results for its own variant, and your code does the job the OR operator promised.
The examples below are mock code. They show the pattern against a placeholder seltz client, so swap in your real client or MCP tool call and check parameter names against the API reference.
Python (mock)
import asyncio from collections import defaultdict # Placeholder client. Replace with your real Seltz client or MCP tool call. from seltz_client import seltz # mock import async def search_one(query: str, scope: str, max_results: int): """One short keyword query -> list of result dicts with at least a 'url'.""" return await seltz.search(query=query, scope=scope, max_results=max_results) async def search_any(queries: list[str], scope: str = "news", want: int = 10): """Behaves like q1 OR q2 OR ...: union of results, deduped by URL.""" per_query = min(50, want * 4) # over-fetch: yield per query is lower than you expect # 1. Run all variants in parallel. lists = await asyncio.gather( *(search_one(q, scope, per_query) for q in queries) ) # 2. Union + dedupe by URL, tracking how many queries hit each URL # and the best (lowest) position it reached in any list. hits = defaultdict(int) best_rank = {} by_url = {} for results in lists: for rank, r in enumerate(results): url = r["url"] by_url.setdefault(url, r) hits[url] += 1 best_rank[url] = min(best_rank.get(url, rank), rank) # 3. Multi-hit documents first, then best single-list position. ordered = sorted(by_url, key=lambda u: (-hits[u], best_rank[u])) return [by_url[u] for u in ordered[:want]] # Usage: the OR you meant when you wrote "Nvidia OR AMD earnings" results = asyncio.run( search_any(["Nvidia earnings", "AMD earnings"], scope="news", want=10) ) for r in results: print(r["url"])
TypeScript (mock)
// Placeholder client. Replace with your real Seltz client or MCP tool call. import { seltz } from "./seltz-client"; // mock import type Result = { url: string; title?: string; [k: string]: unknown }; async function searchAny( queries: string[], scope = "news", want = 10, ): Promise<Result[]> { const perQuery = Math.min(50, want * 4); // over-fetch: yield per query is lower than you expect // 1. Run all variants in parallel. const lists: Result[][] = await Promise.all( queries.map((q) => seltz.search({ query: q, scope, max_results: perQuery })), ); // 2. Union + dedupe by URL, counting hits and tracking best position. const byUrl = new Map<string, Result>(); const hits = new Map<string, number>(); const bestRank = new Map<string, number>(); for (const results of lists) { results.forEach((r, rank) => { if (!byUrl.has(r.url)) byUrl.set(r.url, r); hits.set(r.url, (hits.get(r.url) ?? 0) + 1); bestRank.set(r.url, Math.min(bestRank.get(r.url) ?? rank, rank)); }); } // 3. Multi-hit documents first, then best single-list position. return [...byUrl.keys()] .sort( (a, b) => hits.get(b)! - hits.get(a)! || bestRank.get(a)! - bestRank.get(b)!, ) .slice(0, want) .map((u) => byUrl.get(u)!); } // Usage: the OR you meant when you wrote "Nvidia OR AMD earnings" const results = await searchAny(["Nvidia earnings", "AMD earnings"], "news", 10); results.forEach((r) => console.log(r.url));
One caution on the ranking step. A document returned by both queries is probably a comparison piece, which may or may not be what you want. If you’d rather have a balanced mix of each variant, interleave the lists round-robin instead of sorting by hit count.
For agent builders: paste this into your agent
Most operator queries come from agents, not people. Models have seen decades of boolean syntax, so they reach for it by default. Tell the agent once in its instructions, and give it a tool that does the fan-out for it.
Instruction block for your system prompt
Give the agent a fan-out tool (mock)
Exposing search_any as a single tool means the model never has to decide how to emulate OR. It passes a list, and your code does the rest. The schema below is a mock in the common function-calling shape.
{ "name": "seltz_search_any", "description": "Search Seltz for several alternatives at once (an OR). Pass one short keyword query per alternative. Runs them in parallel, merges, dedupes by URL. Do not put OR, quotes or minus signs in any query.", "input_schema": { "type": "object", "properties": { "queries": { "type": "array", "items": { "type": "string" }, "description": "One short keyword query per alternative, e.g. [\"Nvidia earnings\", \"AMD earnings\"]" }, "scope": { "type": "string", "enum": ["web", "news", "companies", "people", "financial-reports", "wikipedia"] }, "want": { "type": "integer", "description": "Total merged results to return (default 10)" } }, "required": ["queries"] } }
The handler behind that tool is the search_any function from the previous section.
Exclusions and location: filter after you search
The minus sign boosts the word it was meant to remove, so exclusions can’t go in the query. Search first, then filter the results in code. The same approach fixes the location problem. The people and companies scopes return structured objects with a location or headquarters field, and that field is more reliable than a city word in the query.
The example below is mock code. It finds product managers in London or Berlin by fanning out, keeps only profiles whose location field matches, and drops anyone at an excluded company.
import asyncio from seltz_client import seltz # mock import CITIES = ["London", "Berlin"] EXCLUDE_COMPANIES = {"acme corp"} # the job of "-AcmeCorp", done after the search async def product_managers_in(cities, want=20): # One short query per city. No OR, no quotes, no minus signs. lists = await asyncio.gather(*( seltz.search(query=f"product manager {c}", scope="people", max_results=50) for c in cities )) seen, kept = set(), [] for results in lists: for r in results: if r["url"] in seen: continue seen.add(r["url"]) person = r.get("person", {}) location = person.get("location", "") # Post-filter 1: the structured location must match a requested city. if not any(c.lower() in location.lower() for c in cities): continue # Post-filter 2: exclusion. Check current employers only. current = { e["company"].lower() for e in person.get("experience", []) if e.get("is_current") } if current & EXCLUDE_COMPANIES: continue kept.append(r) return kept[:want] people = asyncio.run(product_managers_in(CITIES))
Two notes on this pattern. Because the post-filter discards results, request the maximum per query (up to 50) and let the filter trim. And the people and companies scopes have no publication dates, so from_date and to_date return an error there. Use them on scopes that have dates, such as news.
Cost, limits and quick reference
Fan-out multiplies your call count, so here’s what we measured.
Concurrency: 65 searches fired in parallel across the news and Wikipedia scopes all succeeded. About 95 calls in total produced no errors or throttling.
Result cap:
max_resultstops out at 50. Asking for 51 returns 50 with no error.Repeatability: Running the same query twice returned the same results in the same order.
Call count: Each variant is one search call, so ten variants means ten calls. We didn’t find a rate limit in testing, but we didn’t push for a ceiling either.
Quick reference
You wanted | Don’t write | Do this instead |
|---|---|---|
A or B |
| Search |
A but not B |
| Search |
Several cities |
| One query per city, then filter on the |
Exact phrase |
| Describe it in plain words: |
Grouped logic |
| One query per combination: |
FAQ
How do I get OR behavior in Seltz?
Send one short keyword query per alternative, run them in parallel, then merge the results and remove duplicates by URL. Rank documents returned by several queries first.
Why do operators sometimes seem to work?
A query like Nvidia OR AMD often returns documents about both companies, which looks like a sensible answer. It happens because of how meaning is matched, not because Seltz reads the operator.
How short should each query be?
A few concrete keywords. Natural-language sentences carry extra words that dilute the meaning being matched.
How we tested
We ran about 14 OR queries across the news, companies and people scopes, each paired with single-term control queries, plus negation tests and a 65-call parallel load test. The sample is small and meant to illustrate the pattern, not to measure a rate.
Seltz doesn’t support OR, or any other search operator. It ranks results by meaning instead of filtering them with boolean logic, so a query like Nvidia OR AMD earnings returns articles that discuss both companies, not Nvidia results plus AMD results. This post covers why, what goes wrong when agents use operators, and a short recipe that gets you OR behavior anyway.
What happens when you type OR
We ran Nvidia OR AMD earnings on the news scope over the last 14 days with 5 results. Every result compared Nvidia and AMD. Then we ran Nvidia earnings and AMD earnings on their own. Each returned 5 different articles, and none of them appeared in the OR results.
Query | What came back |
|---|---|
| 5 articles comparing both companies |
| 5 Nvidia earnings articles, none in the OR set |
| 5 AMD earnings articles, none in the OR set |
The OR query behaved like AND. Ranking by meaning does this with any query that mentions two things: the documents closest to Nvidia, AMD and earnings together are the ones that cover all three.
The fix is to send one short query per thing you want, run them in parallel, and merge the results yourself. The rest of this post shows why, and gives you the code.
Boolean filtering and semantic ranking are different things
Search boxes have taught people for decades that operators control the result set. In a boolean system they do. Seltz works differently.
Boolean search | Seltz (semantic ranking) | |
|---|---|---|
What the query is | A set of rules | A description of what you want |
How results are chosen | Documents either match the rules or are dropped | All documents are scored by closeness in meaning, best first |
What | Unions two sets | Nothing special, it’s just a word |
What | Removes documents containing the term | Nothing special, it pulls the term’s meaning toward the query |
Two topics in one query | You get documents matching either | You get documents closest to both together |
Result order | Often arbitrary or by recency | Most relevant first |
A boolean query works like a bouncer with a list: you’re on it or you’re out. A semantic query works like a pointer on a map, and Seltz returns whatever sits closest to where you pointed. Point at the midpoint between Nvidia and AMD and the closest pages are the ones about both.
We tested OR and the minus sign directly. Seltz doesn’t support |, parentheses, quoted phrases or field operators either. It treats all of them as ordinary words, and they can pull results the wrong way.
Three things that go wrong when you use operators
1. OR becomes “both,” so you get hybrids. robotics OR biotech Boston on the companies scope returned 5 of 5 companies that sit between the two fields: a robotic lab, a bio-robot developer, lab-automation robots. Searching robotics Boston and biotech Boston separately returned pure robotics companies and pure biotech companies, with no overlap with the OR set. fintech OR healthtech did the same thing and returned only health-fintech companies.
2. The minus sign boosts instead of excluding. fintech startup -healthtech returned health-fintech companies such as DR.PAY, Ness and RhazesPay. The word “healthtech” pulled results toward healthtech, the opposite of what the minus sign promises.
3. Place names match anywhere on a profile. On the people scope, product manager London OR Berlin returned only people whose location is London. Two of the three also held Berlin jobs, and no Berlin-based profile appeared. product manager Berlin alone returned only Berlin-based people.
Across about 14 OR queries on news, companies and people, each paired with single-term controls, none behaved as a union. Operators don’t fail loudly. They return plausible results that quietly miss half of what you asked for.
The replacement: fan out, then merge
To get OR behavior, split the OR into separate searches and combine the results in your own code. There are four steps:
Write one short keyword query per variant, such as
Nvidia earningsandAMD earnings.Run them in parallel. In testing we ran 65 concurrent searches with no errors or throttling.
Take the union and remove duplicates by URL.
Rank documents returned by several queries first, then by their best position in any single list.
Each query is short and specific, so each one returns focused results for its own variant, and your code does the job the OR operator promised.
The examples below are mock code. They show the pattern against a placeholder seltz client, so swap in your real client or MCP tool call and check parameter names against the API reference.
Python (mock)
import asyncio from collections import defaultdict # Placeholder client. Replace with your real Seltz client or MCP tool call. from seltz_client import seltz # mock import async def search_one(query: str, scope: str, max_results: int): """One short keyword query -> list of result dicts with at least a 'url'.""" return await seltz.search(query=query, scope=scope, max_results=max_results) async def search_any(queries: list[str], scope: str = "news", want: int = 10): """Behaves like q1 OR q2 OR ...: union of results, deduped by URL.""" per_query = min(50, want * 4) # over-fetch: yield per query is lower than you expect # 1. Run all variants in parallel. lists = await asyncio.gather( *(search_one(q, scope, per_query) for q in queries) ) # 2. Union + dedupe by URL, tracking how many queries hit each URL # and the best (lowest) position it reached in any list. hits = defaultdict(int) best_rank = {} by_url = {} for results in lists: for rank, r in enumerate(results): url = r["url"] by_url.setdefault(url, r) hits[url] += 1 best_rank[url] = min(best_rank.get(url, rank), rank) # 3. Multi-hit documents first, then best single-list position. ordered = sorted(by_url, key=lambda u: (-hits[u], best_rank[u])) return [by_url[u] for u in ordered[:want]] # Usage: the OR you meant when you wrote "Nvidia OR AMD earnings" results = asyncio.run( search_any(["Nvidia earnings", "AMD earnings"], scope="news", want=10) ) for r in results: print(r["url"])
TypeScript (mock)
// Placeholder client. Replace with your real Seltz client or MCP tool call. import { seltz } from "./seltz-client"; // mock import type Result = { url: string; title?: string; [k: string]: unknown }; async function searchAny( queries: string[], scope = "news", want = 10, ): Promise<Result[]> { const perQuery = Math.min(50, want * 4); // over-fetch: yield per query is lower than you expect // 1. Run all variants in parallel. const lists: Result[][] = await Promise.all( queries.map((q) => seltz.search({ query: q, scope, max_results: perQuery })), ); // 2. Union + dedupe by URL, counting hits and tracking best position. const byUrl = new Map<string, Result>(); const hits = new Map<string, number>(); const bestRank = new Map<string, number>(); for (const results of lists) { results.forEach((r, rank) => { if (!byUrl.has(r.url)) byUrl.set(r.url, r); hits.set(r.url, (hits.get(r.url) ?? 0) + 1); bestRank.set(r.url, Math.min(bestRank.get(r.url) ?? rank, rank)); }); } // 3. Multi-hit documents first, then best single-list position. return [...byUrl.keys()] .sort( (a, b) => hits.get(b)! - hits.get(a)! || bestRank.get(a)! - bestRank.get(b)!, ) .slice(0, want) .map((u) => byUrl.get(u)!); } // Usage: the OR you meant when you wrote "Nvidia OR AMD earnings" const results = await searchAny(["Nvidia earnings", "AMD earnings"], "news", 10); results.forEach((r) => console.log(r.url));
One caution on the ranking step. A document returned by both queries is probably a comparison piece, which may or may not be what you want. If you’d rather have a balanced mix of each variant, interleave the lists round-robin instead of sorting by hit count.
For agent builders: paste this into your agent
Most operator queries come from agents, not people. Models have seen decades of boolean syntax, so they reach for it by default. Tell the agent once in its instructions, and give it a tool that does the fan-out for it.
Instruction block for your system prompt
Give the agent a fan-out tool (mock)
Exposing search_any as a single tool means the model never has to decide how to emulate OR. It passes a list, and your code does the rest. The schema below is a mock in the common function-calling shape.
{ "name": "seltz_search_any", "description": "Search Seltz for several alternatives at once (an OR). Pass one short keyword query per alternative. Runs them in parallel, merges, dedupes by URL. Do not put OR, quotes or minus signs in any query.", "input_schema": { "type": "object", "properties": { "queries": { "type": "array", "items": { "type": "string" }, "description": "One short keyword query per alternative, e.g. [\"Nvidia earnings\", \"AMD earnings\"]" }, "scope": { "type": "string", "enum": ["web", "news", "companies", "people", "financial-reports", "wikipedia"] }, "want": { "type": "integer", "description": "Total merged results to return (default 10)" } }, "required": ["queries"] } }
The handler behind that tool is the search_any function from the previous section.
Exclusions and location: filter after you search
The minus sign boosts the word it was meant to remove, so exclusions can’t go in the query. Search first, then filter the results in code. The same approach fixes the location problem. The people and companies scopes return structured objects with a location or headquarters field, and that field is more reliable than a city word in the query.
The example below is mock code. It finds product managers in London or Berlin by fanning out, keeps only profiles whose location field matches, and drops anyone at an excluded company.
import asyncio from seltz_client import seltz # mock import CITIES = ["London", "Berlin"] EXCLUDE_COMPANIES = {"acme corp"} # the job of "-AcmeCorp", done after the search async def product_managers_in(cities, want=20): # One short query per city. No OR, no quotes, no minus signs. lists = await asyncio.gather(*( seltz.search(query=f"product manager {c}", scope="people", max_results=50) for c in cities )) seen, kept = set(), [] for results in lists: for r in results: if r["url"] in seen: continue seen.add(r["url"]) person = r.get("person", {}) location = person.get("location", "") # Post-filter 1: the structured location must match a requested city. if not any(c.lower() in location.lower() for c in cities): continue # Post-filter 2: exclusion. Check current employers only. current = { e["company"].lower() for e in person.get("experience", []) if e.get("is_current") } if current & EXCLUDE_COMPANIES: continue kept.append(r) return kept[:want] people = asyncio.run(product_managers_in(CITIES))
Two notes on this pattern. Because the post-filter discards results, request the maximum per query (up to 50) and let the filter trim. And the people and companies scopes have no publication dates, so from_date and to_date return an error there. Use them on scopes that have dates, such as news.
Cost, limits and quick reference
Fan-out multiplies your call count, so here’s what we measured.
Concurrency: 65 searches fired in parallel across the news and Wikipedia scopes all succeeded. About 95 calls in total produced no errors or throttling.
Result cap:
max_resultstops out at 50. Asking for 51 returns 50 with no error.Repeatability: Running the same query twice returned the same results in the same order.
Call count: Each variant is one search call, so ten variants means ten calls. We didn’t find a rate limit in testing, but we didn’t push for a ceiling either.
Quick reference
You wanted | Don’t write | Do this instead |
|---|---|---|
A or B |
| Search |
A but not B |
| Search |
Several cities |
| One query per city, then filter on the |
Exact phrase |
| Describe it in plain words: |
Grouped logic |
| One query per combination: |
FAQ
How do I get OR behavior in Seltz?
Send one short keyword query per alternative, run them in parallel, then merge the results and remove duplicates by URL. Rank documents returned by several queries first.
Why do operators sometimes seem to work?
A query like Nvidia OR AMD often returns documents about both companies, which looks like a sensible answer. It happens because of how meaning is matched, not because Seltz reads the operator.
How short should each query be?
A few concrete keywords. Natural-language sentences carry extra words that dilute the meaning being matched.
How we tested
We ran about 14 OR queries across the news, companies and people scopes, each paired with single-term control queries, plus negation tests and a 65-call parallel load test. The sample is small and meant to illustrate the pattern, not to measure a rate.
Related Articles

Seltz wins Most Promising Startup at the 2026 BCS Search Industry Awards
We won Most Promising Startup at the 2026 BCS Search Industry Awards.

Seltz is now in the Cursor directory
Add Seltz to Cursor in one click for web search with news, company and people filters, plus a tool that reads any page in full.
Try the API today.
Grab an API key and get 20,000 search credits to start.