Skip to main content
Skip to article

ParticleSearch Golden Queries: Protect Important Searches Before You Publish

Protect the searches you would notice first if they broke. A golden query is a small promise recorded against a real search. It says which shopper job matters, which product, variant, position, or destination should satisfy it, and what kind of answer would count as a regression.

This matters because search changes have a wide blast radius and human memory is a poor release system. A synonym added for one phrase can broaden a neighbouring query. A catalogue update can move an exact variant. A layout change can preserve the result but break its handoff. Golden queries keep the important before-and-after promise visible when those changes occur.

This guide explains how that protection works, how it differs from general monitoring, which queries deserve a fixture, how to write an expectation without freezing the catalogue, and how to interpret and maintain failures. You do not need to protect every query; you need a representative set whose business and shopper consequences you can explain.

Protect

The shopper job

Compare

Draft with live behaviour

Recover

Restore a validated state

Chapter 1 · Understand the guardrail

A golden query preserves a known search promise while the system around it changes

Analytics tells you what shoppers did. Monitoring tells you whether the system is healthy. A golden query answers a different question: did a change preserve a search outcome the merchant had already decided was important? It turns that judgement into a repeatable release check.

The fixture should protect meaning, not a screenshot. For an exact identifier, the promise may be the intended variant, availability, and safe handoff. For a broad category, it may be category fit, required constraints, useful breadth, and no incompatible products near the top. The exact order can change when the catalogue improves as long as the buyer’s job remains protected.

This makes golden queries a regression sample rather than a universal quality score. A passing set does not prove every search works, and a failure does not automatically prove the new rule is wrong. It tells the team exactly where a known promise needs interpretation before the release can be trusted.

01

Record the promise

Name the shopper job, required result, acceptable movement, and disqualifying answer before a change occurs.

02

Run the baseline

Confirm that the current validated experience actually satisfies the promise and preserve that evidence.

03

Compare the change

Run the same fixture against the draft and live state so the difference is observable rather than remembered.

04

Interpret and maintain

Decide whether a failure is a regression, catalogue change, context change, or stale expectation, then update the right layer.

Chapter 2 · Choose the right queries

A good protected set represents different ways a store can be wrong

Start with real shopper language and known business consequences. A protected query is not a vanity example chosen because it is easy to make pass. It should expose the result failure that would cause a buyer to abandon, call support, reorder incorrectly, or lose trust.

Exact identity

AB-120-BLK

Protect: The intended product or variant, with a useful maximum position and destination.

Why: A fuzzy or broad result can force a buyer to identify the item again.

High-value category

commercial coffee grinders

Protect: A coherent set of relevant products rather than one memorised winner.

Why: A ranking change can quietly replace a useful category with a narrow promotion.

Compatibility

filter for 2019 Civic

Protect: Products with evidence for the stated fit, not merely similar wording.

Why: A plausible but incompatible result is more damaging than an empty response.

Attribute constraint

waterproof jacket under £200

Protect: The product type and explicit constraint together.

Why: Discovery signals should not override a hard price or attribute requirement.

Known navigation

delivery information

Protect: The intended page, guide, or labelled content path.

Why: A product result can capture an information-seeking query and create unnecessary friction.

Step · Balance the protected set

The strongest set covers risk, not just the queries that are easiest to make pass

A useful protected set has different levels of strictness. An exact identifier can require the intended variant and a maximum position. A broad category query should protect category fit, constraints, and a usable shortlist while allowing the product order to evolve. A content or navigation query should protect the destination and label, not a product position.

Include positive and negative fixtures. Positive fixtures state what should appear. Negative fixtures state what must not appear, such as an incompatible part, an unavailable market item, or a product above a stated budget. Without negative cases, a release can pass by returning a broader set that quietly damages the buying job.

Keep the set small enough to maintain, but broad enough to represent the store’s real risk. Five carefully chosen queries are more valuable than fifty copied examples with no owner or review date. The set is a sample of important promises, not a claim that the unprotected catalogue is healthy.

Exact

Identity, variant, price, availability, and handoff.

Discovery

Category fit, constraints, breadth, and useful cards.

Negative

Incompatible, ineligible, unavailable, or out-of-budget records.

Destination

Policy, collection, guide, or content handoff.

Chapter 3 · Record an honest expectation

The fixture should explain what “good” means without freezing the catalogue

FieldRecordDo not do this
QueryThe exact shopper wording, including punctuation and identifier format.Normalising it until the protected fixture no longer represents the real request.
Expected productsThe products or variants that should appear for this job.Protecting only a product family when the buyer needs one sellable variant.
Position or outcomeThe maximum acceptable position or the destination/content outcome.Treating any result as success when the important item has been buried.
ScopeMarket, collection, surface, customer context, or other condition that changes eligibility.Assuming one global expectation applies to every storefront context.
Review noteWhy this query matters and what a failure would mean for the shopper.Leaving a rule with no owner or reason after the catalogue changes.

Do not protect a stale assumption. If a product has been discontinued, a collection has changed meaning, or a new variant is the intended answer, update the fixture. The goal is to protect the buyer’s current job, not yesterday’s result.

Step · Make the expectation executable

A protected query needs a shopper promise, not just a string and a position

Take an exact query such as AB-120-BLK. “First result is the parent product” is not a complete expectation if the buyer needs the black variant, a sellable price, and a product-page handoff that preserves the identifier. Record the identity, acceptable alternatives, disqualifiers, and the action that should remain safe.

For a discovery query such as waterproof jacket for winter, a single expected product is too brittle. Record the intent, required constraints, acceptable category or collection, and the evidence that should appear on the cards. A new product can become the best answer without being a regression if it still satisfies the promise.

This distinction makes the protected set useful to both merchants and engineers. Merchants can explain what must remain true. Engineers can investigate whether a failure came from the query, field coverage, eligibility, ranking, variant handoff, or a changed catalogue record.

FixtureProtectAllow to changeFail when
AB-120-BLKExact identity, intended variant, availability, and handoff.Position if identity and action remain correct.A parent, wrong colour, or unavailable item becomes the apparent answer.
Waterproof jacket for winterWaterproof evidence, category fit, useful filters, and comparable cards.The exact products and order as the catalogue evolves.The result ignores the constraint, loses the context, or offers no safe narrowing path.

Chapter 4 · Run the workflow

Use golden queries before and after a change, not only when something looks wrong

  1. 1

    Choose an important query from a real search, a known identifier, a high-value category, or a repeated failure pattern.

  2. 2

    Inspect the live result and confirm the expected product, variant, position, eligibility, and destination before protecting it.

  3. 3

    Add the smallest expectation that proves the job. Do not freeze every item or assume one exact order is always correct.

  4. 4

    Run the exact protected set against a draft or current state, preserve the tested input and output identity, then inspect failures rather than immediately changing the threshold.

  5. 5

    Publish only after the query set and the production-equivalent preview agree. Re-run after runtime confirmation.

  6. 6

    Review the fixture when products, variants, collections, markets, or shopper language change. A stale golden query is not a useful guardrail.

ParticleSearch search dashboard showing a next query to inspect and a review queue backed by represented search events
A protected query should lead to a reviewable decision, not a number in isolation. The ParticleSearch overview shows how a repeated query can become the next inspection task. This is a demo capture; the count and query depend on the merchant’s own store.

Chapter 5 · Interpret the result

A failed check is evidence to investigate, not an instruction to boost harder

Pass

The expected product or outcome satisfies the recorded condition.

Next: Keep the evidence attached and continue with the release checks.

Fail

The result no longer meets the protected condition.

Next: Inspect the changed query, scope, product data, and rule before choosing a repair.

Needs data

The fixture cannot be judged because the expected product or supporting evidence is missing.

Next: Repair the fixture or catalogue evidence. Do not call an untestable query healthy.

Inactive

The query remains available for review but is not currently part of the protection set.

Next: Reactivate it when the underlying shopper promise becomes important again.

A failure can come from a query rule, a changed product record, an eligibility boundary, a stale index, a variant handoff, or an outdated fixture. Separate those causes before changing the search experience.

Worked failure: the protected query “AB-120-BLK” used to return the black variant in position one, but after a catalogue update it returns the parent product in position four. Do not immediately pin the parent. First check whether the black variant is still published, indexed, available, and represented in the response. If the record is healthy, the search change may need a focused repair. If the record is missing, the fixture has correctly exposed a catalogue problem rather than a ranking problem.

Chapter 6 · Use ParticleSearch protection

ParticleSearch keeps important search promises attached to publishing

ParticleSearch lets merchants record protected searches with the products and positions that matter, then use those checks around search-setting and rule publishes. The workflow is designed for the question a merchant actually has: “Did this change damage a search I care about?”

The dashboard keeps the protected set visible, allows a merchant to review or update a query, and separates active protection from a fixture that needs data or has been intentionally paused. When a publish cannot satisfy the available checks, the release evidence stays visible instead of implying that a successful save means a successful search.

Protected replays use the same recorded manifest and preserve compact fingerprints for the tested input and ordered output. If the input fingerprint changes, the team is no longer comparing the same test conditions. If the input stays the same but the output fingerprint changes, the result order or returned identity changed and deserves inspection. A fingerprint is change evidence, not a relevance or confidence score.

Published settings and search-rule versions remain available for history and restore. That gives a merchant a controlled response when the regression is real: inspect the failed query, choose whether to fix forward or restore a validated state, then re-run the protection set after runtime confirmation.

The boundary is important. Golden queries do not prove that every query is correct, and they do not repair missing product data or an unavailable item. They protect the promises you explicitly chose and make the evidence around a release easier to trust.

Replay manifest

The protected queries and expectations used for this run.

Input fingerprint

Confirms whether two runs used an equivalent protected input.

Output fingerprint

Shows whether returned identity or order changed under the same test.

Step · Keep protection current

A golden query can become stale even when search is working correctly

A protected product can be discontinued, move to another market, lose a variant, or be replaced by a better item. A category can legitimately gain new products that deserve the top positions. If the fixture still demands the old result without recording the catalogue change, it creates a false failure and teaches the team to ignore the guardrail.

Review the promise, not just the expected position. For an exact identifier, a discontinued item may need an authorised replacement or a clear unavailable state. For a discovery query, preserve category fit and constraints while allowing ranking to evolve. For a content query, update the destination when the canonical guide changes and keep the old path redirected only when that is intentional.

ParticleSearch separates an active protected query from one that needs review or has been intentionally paused. That matters because deleting a failing fixture hides history, while blindly enforcing it can freeze a stale catalogue. The merchant can inspect why the expectation changed, update the protected outcome, and use the revised record in the next publish.

Search regression

The product and context are still valid, but the result no longer satisfies the recorded promise.

Catalogue change

The old expected item is no longer the correct sellable answer, so the fixture needs governed revision.

Context change

Market, stock, customer, or destination policy changed the valid outcome for a stated reason.

Chapter 7 · Start with a small set

Five useful protected queries beat fifty fixtures nobody maintains

Begin with the searches where a regression would be noticed quickly: one exact identifier, one high-value category, one compatibility or technical query, one constraint-heavy request, and one important navigation or content query. Add coverage when the store has evidence that a new failure mode matters.

Use golden queries to protect the buyer promises that matter, not to freeze search in place. ParticleSearch gives you the workflow to record those promises, check them around a publish, and recover when a known search has genuinely regressed.

For a broader judgement and release system, continue with the ecommerce search QA guide and safe publishing guide.