What this layer controls
- Which products appear for a query, and in what order
- Which facets exist, which are indexable, and which are traps
- What a category page shows before any personalisation
- Whether a promotion can be scheduled without a deploy
What it looks like when it is wrong
These are the symptoms that show up in a marketing report or a Monday meeting. Each one has a technical cause in this layer, and each is cheaper to fix before it has a quarter of history behind it.
- Site search returns nothing for a misspelling of your own product name
- Facet URLs multiply into hundreds of thousands of crawlable pages
- Merchandising rules live with the agency, not with the merchandiser
- Recommendations surface out-of-stock items
- A category page shows the same products to everyone, sorted by SKU
An open-source stack for this layer
Every project below is open source and self-hostable, with the licence the project publishes today. This is a reference build, not a recommendation to run all of it: pick the layers your stack is missing.
| Layer | Project | Licence | What it does |
|---|---|---|---|
| Search | Meilisearch | MIT | Fast typo-tolerant search with facet counts and synonyms you can edit. |
| Search (scale) | OpenSearch | Apache-2.0 | Large catalogues, complex ranking and aggregations. |
| Ranking rules | Your own rules file + tests | n/a | Boosts and pins as versioned config, applied by a script. |
| Crawl control | robots + canonical policy | n/a | Facet indexation decided deliberately, not by accident. |
| Measurement | Matomo or PostHog | GPL-3.0 / MIT | Search exit rate, zero-result queries and facet usage. |
Evaluation checklist
Answer each of these about your current stack. A ‘no’ is a work item, and the count is a fair summary of the layer’s health.
- Are ranking rules versioned and testable against a query set?
- Is zero-result rate measured per query and reviewed weekly?
- Is the facet indexation policy written, with an explicit allowlist?
- Do recommendations exclude out-of-stock and non-sellable items?
- Can a merchandiser schedule a campaign without engineering?
- Is search quality measured on your own query log, not on a vendor demo?
What to instrument
Numbers that make the layer’s health visible before a customer complains.
- Zero-result search rate
- Search exit rate
- Crawlable URL count vs product count
- Revenue per search session vs browse session
Where this fits
Scope. This page describes the category and an open-source way to build it. It does not publish 5 Kings’ internal method, client data or vendor terms, and it is not an endorsement of every project listed: check the licence and the maintenance activity against your own constraints before you adopt one.