Meili vs Elastic

Currently running Elasticsearch, which is pretty fast and accurate. Great for looking up hashtags, or simple full text search. Very happy with the implementaion.

I’m intriged by Meilisearch - Some question:

  1. Docs stated 4-5GB of RAM usage for 1.2 mil posts. Does RAM usage scale linearly with number of posts, or is it tunable?
  2. Does Meilisearch return results sorted by relevancy or by time?
  3. Is it noticibly faster than Elastic?

Took the plunge and switched to Meilisearch. It’s working great!

Sharing some stats for reference:

  1. Search queries could saturate SATA SSD - NVMe recommended for that extra speed
  2. Index on disk was about 24GB for ~2M posts - Much bigger than Elastic
  3. The process happily used all available memory as shared buffers
  4. System load much higher than Elastic. On my quad core container, the load is a constant 1.0-1.1. Seems only 1 core was used for indexing
  5. Lots of disk I/O constantly. See graph:

p.s. Haven’t started tuning yet; based on v0.30.5