Skip to content
Preptima
hardDesignCase StudySeniorStaffLead

Design search over a catalogue of fifty million products. How is the index built, how are results ranked, and how does the index stay fresh?

6 min readUpdated 2026-08-15

Answer

Short answer

An inverted index maps terms to posting lists, built by an analysis chain that must run identically over documents and queries, ranked by BM25 plus business signals, and fed by a change stream of denormalised documents with reindexing behind an alias treated as routine.

Was this answer helpful?

Likely follow-ups

  • A merchandiser wants a specific product pinned first for one query. Where does that rule live so it does not corrupt the scoring model?
  • How would you evaluate whether a relevance change is an improvement before shipping it?
  • The catalogue has thirty facets and users filter on four at once. What does that do to your query and to caching?
  • How do you handle a query with a typo, and where does that fit relative to synonyms and stemming?

Related questions

Related Topics