Shoppers can search in several languages or by SKU and EAN, apply filters, sort results and reopen the same search from its URL.
How product search works
This guide covers: how shoppers filter and revisit searches, and how Catalog updates the Elasticsearch search index.
About this guide
Prepared with AI under human direction. Search defaults, variant indexing and stock filtering were checked against source on 12 September 2026. The recordings show July 2026 behavior. Sources: search document, query filters and stock projection.
1. What search does
Shoppers search and filter published products. Catalog manages the product records and updates a separate Elasticsearch index for search.
Product and Stock changes queue an indexing job. Repeated changes to one product are grouped, and the worker reads its latest state before updating or removing the search document.
2. Refine, sort, reload
A shopper narrows a real category and returns to the same search state after browser reload.
Refine, sort, reload
Matter compatibility, AeroClean brand, battery power, free text and price order reduce the list while result and facet counts stay useful. Reload restores the complete state from the URL.
3. Product lifecycle changes search
Publish, rename, archive
The Aurora field camera is absent before publication, appears when published, answers to its new localized name after an edit and disappears after archival. No manual reindex appears in the journey.
4. Availability changes search visibility
Hide sold out; restore on receipt
The Astra wireless headset starts with six units, leaves storefront search after a warehouse write-off and returns after a receipt adds twelve. Stock remains the authority throughout.
5. One Product, many ways to find it
Names, languages, SKU and EAN
A rare exact-name match outranks a description-only match. French, German and Italian names plus exact SKU and EAN searches resolve the same stable product identity.
6. What changes for the customer
- 01Search state is easy to revisitFilters, counts, sorting and URL state let shoppers refine without losing context.
- 02Product status controls visibilityOnly current published products remain eligible for normal search results.
- 03Availability remains owned by StockCatalog uses availability updates from Stock.
- 04Search remains rebuildableElasticsearch can be reconstructed from authoritative Catalog state.
How storefront search works
Catalog builds search queries and manages index updates. Elasticsearch handles search requests through aliases; Catalog saves product changes independently.
7. Services involved
Search runs inside Catalog, using availability updates from Stock. There is no separate Search service.
8. Read path, relevance and facets
Product results group concrete variants. Each indexed product must have an active default variant. A SKU or EAN query matches nested variant identifiers; the result still belongs to the product. Price summaries come from variant commercial values.
The public search endpoint builds a bounded Elasticsearch query from URL-backed storefront state.
| Indexed relevance area | Current boost | Purpose |
|---|---|---|
| Curated product search terms | 40 | Gives curated terms the most weight |
| Category path names / terms | 8 / 6 | Category context |
| Variant SKU and EAN | Exact match | Nested variant identifier query, with currency filtering when requested |
| Product names DE/FR/IT/EN | 4 | Names in each language |
| Description and searchable attribute text | 1 | Broad supporting text |
9. Reliable product indexing
Product events add indexing work to PostgreSQL instead of writing to Elasticsearch directly. Repeated changes to the same product are grouped before the worker reads its current state.
10. Stock updates and visibility
Stock events update Catalog’s availability projection and enqueue the same durable product-index work.
11. Recovery, documents and aliases
The full rebuild scans published products from Catalog, hydrates current metadata and availability, upserts documents, then removes stale IDs.
catalog-products-v1 index. The current code provides a place to add future index migrations but does not implement blue-green alias rotation.| Document area | Indexed facts |
|---|---|
| Identity | Product ID, slug and status; default variant identity and nested variant SKU/EAN records |
| Merchandising | Thumbnail, brand, creation time and a price summary derived from variants |
| Category | Leaf category, full path IDs, localized names and curated terms |
| Search text | Curated terms plus localized name and description |
| Attributes | Nested code/type with enum, numeric, boolean or localized text values |
| Availability | Catalog’s projected inStock value |