Testing relevance changes with the OpenSearch Search Relevance Workbench: what it does and when to use it
When your team changes boosts, analyzers or synonyms on a self-hosted OpenSearch site or application search, you need evidence before release, not a handful of spot-checked queries. According to the OpenSearch optimizing search quality docs, the Search Relevance Workbench supports query comparison, result evaluation and A/B testing. It lets you run a candidate query configuration against a stored set of queries, judge the results and compare outcomes side by side with the current configuration before anything reaches users.
Use the Workbench when a ranking change has unclear effects across many queries. A boost on a title field can help navigational searches and quietly bury long-tail product queries, and a new synonym file can change dozens of result lists you never looked at. In those cases, plan the work around a query set that reflects real search traffic, a set of relevance judgments made by people who know the content, and a clear rule for which metrics must not regress. If a change is a one-line fix to a single known query, or a typo in a stopword list, a manual check of the affected queries in Dashboards or with _search requests is usually enough.
The docs list the Workbench alongside User Behavior Insights, a relevance agent and query rewriting as OpenSearch's search quality tools. The Workbench covers the comparison step, while User Behavior Insights supplies the queries and click signals you need to build judgments from. Before you start, confirm with your OpenSearch version which Workbench features and screens are available in your release, and confirm who on your team owns judgment quality, since an evaluation is only as reliable as the judgments behind it.
Workbench building blocks and when each fits
This table compares the five building blocks a team configures in the Search Relevance Workbench: query sets, judgments, experiments, side-by-side comparison and scheduled evaluations. Read each row for when the block fits and the decisions your team must make before setting it up. Exact option names, input formats and supported judgment methods vary by version, so confirm them in the current OpenSearch docs for your release before you build.
| Building block | What it is | When it fits | Decisions your team must make |
|---|---|---|---|
| Query set | A fixed list of representative queries drawn from real search traffic or known user tasks | You need a stable baseline so two query configurations are compared on the same inputs | Which queries represent the site or app, how many are included, and how often the set is refreshed as traffic shifts |
| Judgments | Ratings that say how relevant each result is for a given query | You need a reference for whether a result list is better or worse than before | Who rates results (product owners, search engineers, domain experts), the rating scale, and how disagreements are resolved |
| Experiment | One query configuration run against a query set, with its results and scores recorded | You want to test a candidate change such as new boosts, analyzers or synonyms before release | Which query variants to compare, which judgments score them, and what result change counts as an improvement |
| Side-by-side comparison | Results from two configurations shown next to each other for the same query | Scores hide problems and a reviewer must see why a ranking moved | Who reviews the differences, which queries get manual review, and what a reviewer records as a decision |
| Scheduled evaluation | Repeat runs of an experiment on a timetable or after changes | A search configuration, index or data source changes often and drift must be caught | Which trigger starts a run, who receives the results, and who owns the response when scores fall |
| Judgment method (confirm) | The way ratings are produced, such as human rating, implicit signals or model-assisted rating | You need to choose between manual effort and coverage at scale | Which methods your version supports, how click or behavior data is collected, and whether data use is approved for your users |
How query sets, judgments and experiments fit into a release check
The check starts with a query set drawn from real search traffic or known queries, then adds judgments that rate how well results answer each query. A baseline and a candidate query configuration are each run as experiments against that same set, and the results are compared side by side. A person reviews the comparison before anything moves to staging, and the change reaches production only after staging results hold. The outcome is to ship, revise the candidate, or retest with a refreshed query set.
General relevance release check, not a DeployOpen-specific product flow.
How to set up a first relevance experiment in the Workbench
This sequence takes a team from a confirmed cluster and access model to a recorded decision on a relevance change. Each step leaves a check the team can point to, so the result of the experiment can be reproduced and defended later.
Confirm cluster version and Workbench availability
Before anything else, confirm the OpenSearch version your cluster runs and check the OpenSearch documentation for that version to verify that the Search Relevance Workbench is available and enabled. The Workbench is one of several search quality tools in the project, so do not assume it is present in every build or configuration. Ask your platform owner to record the exact version in the experiment notes. Done when someone can open the Workbench in Dashboards and the version is written down next to the test plan.
Assign roles for experiment owners and reviewers
Set up roles in the OpenSearch Security plugin so that the people who build query sets, enter judgments and run experiments have only the index and Workbench permissions they need. Keep reviewers separate from the people who change query configurations, so the judgments are not shaped by the candidate being tested. Confirm the access model with your security team, including who can view production query logs that contain user data. Done when a test user with each role can perform only its assigned tasks.
Build the query set from real search traffic
Export the most important queries from your search logs or search analytics, favoring queries that carry revenue, support volume or known frustration. Remove or mask personal data and deduplicate near-identical queries before loading them into the Workbench as a query set. Name the query set with a date and source so it can be reproduced later. Done when a reviewer confirms the set reflects what users actually type, not only the queries the team expects.
Create judgments with domain reviewers
Ask reviewers who know the content and its users to rate the results returned for each query in the query set. Give them written rating guidance so that different reviewers score the same result the same way, and record who judged each query. Where reviewers disagree, settle the rule in the guidance rather than averaging the disagreement away. Done when the judgments cover every query in the set and a sample of ratings has been checked for consistency between reviewers.
Define baseline and candidate configurations
Write down the current query configuration as the baseline and the proposed change as the candidate, including field boosts, analyzers, synonyms, and any rescoring or rewriting. Change one meaningful thing at a time where possible, so the result can be attributed to a cause. Store both definitions as text in version control or your change record. Done when a second engineer can read both definitions and state the difference between them without asking the author.
Run the experiment and check the baseline
Run one experiment that evaluates the baseline and candidate configurations against the same query set and judgments. Before trusting the candidate result, rerun the baseline and confirm that it reproduces the earlier output for the same inputs. If the baseline changes between runs, look for index changes, judgment edits or nondeterministic inputs before continuing. Done when the baseline returns consistent results and the experiment output is saved with its identifier.
Review side-by-side results with reviewers
Open the side-by-side comparison of baseline and candidate results and walk through the queries where rankings moved most, both up and down. Focus on queries that got worse, because a metric gain can hide a regression on the queries that matter most to customers. Note the findings per query, and check that the judgments cover any result that now appears in the top positions. Done when every notable regression has a written explanation or a follow-up task.
Record the decision and schedule re-evaluation
Write a decision record that states the baseline and candidate definitions, the query set and judgment version, the experiment identifier, the reviewers' findings and the outcome: ship, revise or reject. Store the record with the configuration change so the reasoning survives staff changes. If the team plans to repeat the evaluation as the index or query set changes, set up a scheduled evaluation and confirm it runs. Done when the decision record is linked from the change ticket and the next evaluation is scheduled or assigned.
Reading side-by-side results without fooling yourself
The most common error in relevance testing is trusting one aggregate number. Before you accept a comparison, read the result lists themselves for the highest-value queries: the searches that drive the most sales, sign-ups, support deflection or whatever your business metrics reward most. Check the top three to five positions for each, and ask whether a reviewer in your business would pick the same item first. A configuration that lifts an average while pushing your best-selling product off the first screen for a core query has failed, even if the aggregate looks better.
Give the same attention to queries that got worse as to those that improved. Sort the comparison by regression, not only by gain, and review each drop with a written reason. Some drops are acceptable trade-offs, such as a synonym that helps recall for a rare term but buries an exact match. Others point to a defect in analysis or boosting. Keep a short record of each decision so that the next experiment can be checked against it. Small query sets make both mistakes easier: a handful of queries can make a real improvement look large, or hide a regression that only affects one important segment. Ask the team that owns the query set how many queries represent each product category, language and customer type, and confirm the set includes the searches your support and sales teams hear about most.
Where the process allows it, have reviewers judge result lists without knowing which configuration produced each one. Label the lists as A and B, randomize their order per query, and record judgments before the labels are revealed. Reviewers who know the candidate often favor it, especially when they built the change. Confirm with your own evaluation owner whether the Workbench judgment workflow can present lists this way in your setup, and document how judgments were made so that an external reviewer or internal risk team can follow the reasoning later.
Where relevance comparisons mislead teams
A Workbench experiment only tells you something if the inputs hold still and the reviewers are honest. The cards below cover the places where a clean-looking comparison of two query configurations can point the wrong way, and what to verify before a team ships on the result.
Head-heavy query sets
A query set built from the most frequent searches tests the configurations on the queries you already handle well. Rare, long and misspelled queries, which often produce the complaints, can be absent. Before trusting a result, check how the query set was sampled, whether it includes tail queries and zero-result queries from logs, and whether each query type you care about has enough entries to show a difference.
Workbench docsStale judgments after content changes
Relevance judgments record which documents were good answers when they were made. After products are retired, prices change or articles are rewritten, those judgments can reward documents that no longer answer the query. Check the date of each judgment set against your last catalog or content change, and re-judge queries whose top results have changed materially.
Different index snapshots
If one configuration was evaluated against a newer index than the other, the difference may come from the data, not the query or analyzer. Documents added, removed or re-indexed between runs shift scores and result sets. Confirm both experiments ran against the same index state, and record the index name, refresh state and document count with each run so the comparison can be reproduced.
Silent tokenization changes
A change to synonyms or analyzers can alter how text is split, stemmed or matched for some languages while leaving English results unchanged. Aggregate scores may hide regressions in one language or script. Check results per language and per query group, and review analysis output for a sample of terms in each language before accepting a change that looks neutral overall.
Reviewers who know the answer
When the people judging results wrote the query or the configuration under test, they tend to mark results that match their intent as relevant. Judgments then measure agreement with the tuning team, not usefulness to shoppers, readers or staff. Use reviewers who did not build the change, give them the query without the configuration label, and record disagreements between reviewers as well as scores.
A/B results without enough traffic
Live A/B tests measure clicks and conversions, which depend on traffic volume, user mix and seasonality. A short test on a small segment can show a gap that disappears on a longer run or a different day. Before reading the result, confirm the sample size, the test duration, how users were assigned to each arm, and whether offline judgments and live behavior point the same way.
Running the Workbench in staging, production or a copy of the index
A staging cluster with a copy of the production index is the most common starting point. The team controls the cluster, can run experiments freely, and keeps query load away from customers. The cost is that the copy is only as current as your last sync, and keeping it current is ongoing work that someone must own.
- Data freshness: the copy reflects the source at the time of the last load, so recently added or removed documents can change which results appear.
- Cost of sync: reindexing or snapshot restores consume compute, storage and engineer time, and the frequency sets how often that cost recurs.
- Production load: none on the live cluster during experiments, which is the main reason teams choose this model.
- Comparability: analyzers, synonym files, mappings, shard counts and the OpenSearch version must match production, or relevance differences will reflect the environment rather than the query change.
- Scope limits: confirm with the OpenSearch documentation whether the Workbench can run experiments against the data that will actually be served, and plan for a final check in production.
Before relying on results, check that the staging copy's document count and key fields match production at the snapshot time you evaluated against.
Evaluating against the production cluster gives the most current data and the most realistic result sets. It also puts evaluation traffic on the cluster that serves customers, so the controls around it matter as much as the metrics. Access should be limited to read operations and the workload should be bounded before any scheduled run is enabled.
- Data freshness: results reflect live content, so no sync process is needed and there is no drift between the copy and the source.
- Cost of sync: effectively none, but teams still pay in capacity planning and in the review that approves evaluation traffic.
- Production load: every query in an experiment or scheduled evaluation consumes search threads, memory and heap on nodes that serve users, so query set size and frequency need limits.
- Access control: use a dedicated role with read-only index permissions and no write or cluster administration rights, and audit the account's activity through the Security plugin's audit logs.
- Comparability: the index changes while you evaluate, so record the time of each run and, where possible, compare runs against a stable view of the data.
Ask your team to confirm the evaluation role's permissions and the cluster's headroom in the window you plan to use before enabling scheduled runs.
A separate evaluation cluster, restored from snapshots of production, separates experiment load from both production and day-to-day staging. It suits organizations with large indices, frequent relevance work or strict rules against running tests near live data. It is also the most infrastructure to build and operate, so the justification should come from measured need.
- Data freshness: only as current as the most recent snapshot, so the schedule for snapshot restores determines how stale results can become.
- Cost of sync: snapshot storage, restore compute and a cluster that must run whenever evaluations run, all of which recur and grow with index size.
- Production load: limited to the snapshot process, which still reads from production, so confirm snapshot timing and node impact with your operations team.
- Environment match: the evaluation cluster must run the same OpenSearch version, plugins, analyzers and synonym resources as production, and restores must include the same mappings and settings.
- Restore testing: confirm that restored indices behave like the originals, since a restore that skips settings can produce results that look valid but differ from what customers see.
Before committing to this model, ask whether the snapshot schedule and storage costs fit your existing backup plan for the cluster.
Security and privacy for queries, judgments and results
Relevance experiments copy real search behavior into evaluation data, and that data can carry personal information and document content that some users should never see. The controls below decide who can read, run and keep this data, so they should be set before the first query set is built.
Treat query sets as personal data
Query sets are often built from logged user search text, and users sometimes type names, account numbers, health terms or other personal details into a search box. Before importing queries, decide whether they will be anonymized, truncated or filtered, and set a retention period for the query set and every judgment list derived from it. Confirm with your privacy team whether the sets fall under your existing logging policy.
Match reviewer permissions to documents
Judgment screens show result documents, and a reviewer who can see a result the end user cannot see creates an exposure the search application itself would never allow. Reviewers should hold the same document and field permissions that the product's roles grant, ideally through a dedicated role that mirrors the production role. Test this with a reviewer account that lacks access to a sensitive index and confirm that restricted fields do not appear in the Workbench views.
Confirm Security plugin controls on Workbench indices
The OpenSearch Security plugin offers role-based access control, document-level and field-level security, field masking, audit logs and TLS for node and client traffic. Whether each control applies to the Workbench's own indices and Dashboards views is a question to confirm in your version's documentation and in a test cluster, not to assume. Record which controls apply, which need configuration, and which gaps need a compensating process.
OpenSearch security docsRestrict who can run production experiments
An experiment that runs a candidate query against a production index sends real user data through a new path and adds load to the cluster. Limit experiment creation to a small group of named relevance engineers, and require that experiments against production use approved query sets. Log who created, edited and ran each experiment so that results can be traced back to an accountable owner.
Keep evaluation data under source policy
Experiment results, judgments and query sets can hold copies of document text and user queries, so they can outlive the source data if nobody plans for it. Include the Workbench's indices in your snapshot repositories and backup schedule, and make sure a deletion request that removes a user's data from the source also reaches derived evaluation data. Ask the team to document where each evaluation artifact is stored and who owns its deletion.
Protect scheduled evaluation credentials
Scheduled evaluations run without a person present, so they usually authenticate with a service account. That account should have read access only to the indices it evaluates, with credentials stored in your secrets management system rather than in job definitions. Review the account's permissions whenever the query set or target index changes, and remove it when the evaluation program is retired.
Questions teams ask before testing relevance with the Workbench
How much effort does a relevance test with the Workbench take?
Effort depends mostly on four things: the quality of the query set, how many reviewers are available to judge results, how much access the team has to the cluster and its search logs, and how many query configurations are compared. A small set of well-chosen queries with two or three configurations is a very different job from a multi-language catalog with dozens of candidate changes. Ask any partner for a written breakdown that separates query set design, judgment collection, experiment setup, result review and the final report, so each part can be priced and checked against your own capacity.
Can our in-house team run relevance testing without outside help?
Yes, if the team includes search engineers who can write and run OpenSearch queries and domain reviewers who know what a good result looks like for your customers. Search engineers handle the configurations and the Workbench setup, while reviewers supply the judgments that decide whether a change is an improvement. A partner typically adds experience with query set construction, consistent judgment guidelines, experiment design and a repeatable process, which is most useful when the team has not run a formal evaluation before or when deadlines compete with product work.
How long does a first relevance testing cycle take?
The duration of a first cycle depends on the size of the query set, how quickly reviewers can produce judgments, and how many configurations are compared. Reviewer capacity is usually the slowest step, so it is the number to plan around. Do not accept a duration without a written plan that lists each stage, its inputs and its owner, and that states what the client must provide and when. Ask for the plan to name the review capacity it assumes.
What does the work need from our team?
Plan for four types of input. The team needs access to search logs or analytics so that real queries can seed the query set, a staging cluster where the Workbench experiments can run without touching production traffic, named reviewers with time set aside for judging results, and a decision owner who signs off on which configuration advances and on the judgment guidelines. Confirm access approvals and data handling rules for search logs early, because they often contain user-entered text.
Does the Search Relevance Workbench replace A/B testing in production?
Confirm this with the current OpenSearch documentation before you plan around it. OpenSearch lists the Workbench for query comparison, result evaluation and A/B testing among its search quality tools, so the Workbench covers offline comparison and evaluation. Whether and how it supports live traffic experiments, and how that compares with your own production experimentation platform, should be checked in the docs and in a test on your version. Plan offline evaluation to filter candidates, and keep production experiments for the changes that survive that filter.
What recurring work follows the first relevance test?
The recurring cost is keeping the evaluation current. Catalog content, product names, seasonal terms and customer language change, so query sets and judgments go stale, and scores measured against an old set can mislead a release decision. Budget for periodic refreshes of the query set, new judgments for queries that have shifted, and re-running scheduled evaluations after each relevant change. Ask a partner to quote the refresh work separately from the first build so you can see which part recurs.
What should we check on the cluster before running experiments?
Engineers should confirm the OpenSearch version in use and that the search quality tools they need are available in that version, since the Workbench is a plugin feature that depends on the release. Check that the staging cluster holds a copy of the index with a representative mapping and analyzers, that the cluster has capacity for the experiment load, and that the Security plugin roles let the evaluation user read the indices involved. Keep configuration versions in source control so each experiment can be reproduced later.
Limits to confirm in your environment before you rely on the Workbench
The Workbench is part of the search quality tooling in OpenSearch, and its availability and feature set depend on the OpenSearch version and the plugins installed in your cluster. Before you plan a relevance program around it, confirm which features your version provides, since the documentation changes between releases. Check the current docs for the exact version you run in the OpenSearch optimizing search quality docs, and record the version in your test plan so later comparisons are reproducible. Do not assume a feature described on a newer docs page exists on your cluster.
Scheduled evaluations and A/B testing may carry their own constraints, such as how often runs can execute, how much cluster capacity they consume during business hours, and which roles can create or start them. Judgments are only as good as the people who make them, so set up reviewer guidance, a calibration round where reviewers rate the same results, and a way to resolve disagreement before any score drives a release decision. Results are also tied to the index state at run time: a reindex, a synonym reload, new documents or changed analyzers can shift a score without any query change, so record the index name, document count and settings alongside each experiment.
This page does not give exact option names, limits or performance figures. Take those from the official docs for your version, and confirm the behavior on a copy of your own data with a representative query set before you rely on it. Measure run time, resource use and the stability of scores across two runs on unchanged data. Treat any figure you find elsewhere, including in summaries or forum posts, as unverified until your own test reproduces it.
How DeployOpen scopes and delivers relevance testing on your OpenSearch cluster
DeployOpen plans, builds and hands over relevance testing for OpenSearch clusters that run inside your own infrastructure. The work starts with a written scope covering the query configurations, judgment sets and evaluation schedule you need, so your team can compare candidate changes against current behavior before anything reaches production.
How we scope
- Written scope names the search applications, indices and query configurations to be compared before work starts.
- Scope defines who builds query sets and judgments, and which team reviews the graded results.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work begins.
- Ask for the scope to state which OpenSearch version and plugin set the testing runs against.
How we build
- We set up query sets drawn from real search traffic in your environment, with access controls applied from the start.
- Judgments are recorded against the result lists the Workbench produces, so graders can score each candidate consistently.
- Experiments compare candidate query configurations side by side, and results are kept with the settings that produced them.
- Scheduled evaluations are configured where your team wants regular checks after index or analyzer changes.
How we hand over
- You receive the query sets, judgment records, experiment configurations and evaluation schedules as documented assets.
- Runbooks explain how to add a query, record a judgment, launch an experiment and read the side-by-side output.
- A handover session walks your search and platform engineers through the workflow on your own cluster.
- Confirm with us which artifacts stay in your repository and which are stored on the cluster.
How we support
- Ongoing support, OpenSearch upgrades and continuous testing are available as retainers after handover.
- Retainers can cover re-running evaluations when OpenSearch versions move through maintenance releases.
- Quotes follow from the written scope, so ask for each component, the owner of each task and what recurs.
- Relevance testing can be extended to other search work, such as synonyms, analyzers or reranking, in a separate scope.

