# S11 E2: Building a Rust Search Engine with Clément Renault of Meilisearch

Published: 2025-06-03
Duration: 1013s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/d3d83b8a-360b-479f-86d1-b43be3f8e3b1/stream.mp3

## Key Takeaways
- Hackathon-Born Search Engine: Meilisearch began in November 2018 as search for an e-commerce site. A Rust build on RocksDB and Roaring Bitmaps, modeled on Algolia's API and experience, went on to win a Louis Vuitton hackathon.
- Roadmap Tied to Paying Users: Kero calls hiring product managers the best decision. Priority goes to customers who index millions of documents, need low-latency search and will pay, while the engine stays available and open to pull requests.
- Sharding Beyond Replication: The engine went from handling about 2 million documents around 2020 to over 500 million. Sharding splits content across smaller machines, avoiding the multiplied large servers that replication requires.
- Disk-Based Vectors with Arroy: The team ported the C++ base of Spotify's Annoy library to Rust as Arroy, storing vectors in LMDB for durability. A working version took about two months, and memory use is still being refined.
- Blameless Response to Failure: A completely broken version shipped one day before Christmas, forcing a rushed fix that took about a week. The team punished no one and instead analyzed what happened to avoid repeating it.

Clément "Kero" Renault wanted to be an architect when he was younger. During that time, he also learned about computers and built his first website - and he never stopped building. Funny story, he lost that first website cause it wasn't on Git. Outside of his professional life, he likes to draw, craft and to cook. He also enjoys video games, and mentioned Hidden Reign was his favorite game of all time, alongside the likes of Cyberpunk.

Seven years ago, Kero was in school, and he wanted to build a solid search experience, but not just a general search - one that indexed your data, and allowed you to have a "Google" just for your info. After winning a school hackathon, Kero and his mates wanted to take it to the next level.

This is the creation story of [Meilisearch](https://www.meilisearch.com/).

Sponsors

- [Paddle.com](https://www.paddle.com/)
- [Sema Software](https://www.semasoftware.com/)
- [PropelAuth](https://www.propelauth.com/)
- [Postman](https://www.postman.com/podcast/codestory)
- [Meilisearch](https://www.meilisearch.com/?utm_campaign=podcast&utm_medium=ad&utm_source=codestory)

  

Links

- [https://www.meilisearch.com/](https://www.meilisearch.com/)
- [https://www.linkedin.com/in/kerollmops/](https://www.linkedin.com/in/kerollmops/)

  

Timestamps

00:00 – Intro

04:20 – Building the Meilisearch MVP

05:32 – MVP Decisions and Tradeoffs

06:54 – Shaping the Product Roadmap

08:32 – Building the Meilisearch Team

09:22 – Scaling the Search Engine

10:58 – Proudest Moment

12:18 – A Broken Christmas Release

13:12 – The Future of Meilisearch

14:17 – Influences and Rustaceans

15:26 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Clément Renault from Meilisearch: [https://www.codestory.co/episodes/s11-e2-the-4x-faster-indexer-scaling-rust-based-search-to-millions-of-documents-without-infrastructure-bloat-with-clement-kero-renault-co-founder-cto-of-meilisearch/](https://www.codestory.co/episodes/s11-e2-the-4x-faster-indexer-scaling-rust-based-search-to-millions-of-documents-without-infrastructure-bloat-with-clement-kero-renault-co-founder-cto-of-meilisearch/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our Stacklist! [https://stacks.codestory.co/](https://stacks.codestory.co/)

Check out our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart | Technical Founder & Startup Mentor.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 4:20 — Building the Meilisearch MVP
- 5:32 — MVP Decisions and Tradeoffs
- 6:54 — Shaping the Product Roadmap
- 8:32 — Building the Meilisearch Team
- 9:22 — Scaling the Search Engine
- 10:58 — Proudest Moment
- 12:18 — A Broken Christmas Release
- 13:12 — The Future of Meilisearch
- 14:17 — Influences and Rustaceans
- 15:26 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** What is Meilisearch and what is it used for? — **A:** Meilisearch is a search engine for the data you provide it, such as an e-commerce site, marketplace or SaaS application, rather than public web data. Clément Renault explained that you "just plug Meilisearch and it will be able to provide a search bar on your website" [02:58].
- **Q:** How did Meilisearch get started? — **A:** Renault and co-founders Quentin and Thomas set out to build a good search engine for an e-commerce website, then won a Louis Vuitton hackathon and went on to work for the company. In Renault's words, "This hackathon like created Meilisearch." [04:03]
- **Q:** How does Meilisearch scale to hundreds of millions of documents? — **A:** Renault said the team long focused on scaling a single instance and has more recently moved to sharding content across machines, which allows smaller servers and faster indexing. On capacity, he said that "with a new engine, we are capable to handle like more than 500 millions without sweat" [09:56].
- **Q:** How does Meilisearch store vectors for semantic and hybrid search? — **A:** The team built Arroy, a Rust vector store based on Spotify's C++ Annoy library, and keeps its contents in LMDB alongside the documents for durability. Renault said they set out "to find a good solution for Meilisearch to store vectors on disk and not in RAM" [11:19].
- **Q:** What is the Ask route that Meilisearch is planning? — **A:** It is a planned feature that lets people ask questions through a search bar on a website they own, with Renault aiming for instant answers instead of a wait of several seconds. Renault described it this way: "It will be a route on Meilisearch to ask Meilisearch about stuff." [13:27]
