Back to articles
Meilisearch Has a Free API — Lightning-Fast Search in 50ms

Meilisearch Has a Free API — Lightning-Fast Search in 50ms

via Dev.to JavaScriptAlex Spinov

Meilisearch is the lightning-fast, open-source search engine — typo-tolerant full-text search in <50ms. It's the free alternative to Algolia and Elasticsearch. Why Meilisearch? 50ms search — instant results, even on large datasets Typo-tolerant — "javscript" still finds "JavaScript" Zero config — works great out of the box RESTful API — simple HTTP calls, any language Faceted search — filter by categories, price ranges, etc. Multi-tenancy — API key-based tenant isolation 11MB binary — runs on a Raspberry Pi Quick Start # Docker docker run -d -p 7700:7700 \ -v meili-data:/meili_data \ getmeili/meilisearch:v1.11 # Or binary curl -L https://install.meilisearch.com | sh ./meilisearch --master-key = "YOUR_MASTER_KEY" Index Documents import { MeiliSearch } from " meilisearch " ; const client = new MeiliSearch ({ host : " http://localhost:7700 " , apiKey : " YOUR_MASTER_KEY " , }); // Add documents await client . index ( " movies " ). addDocuments ([ { id : 1 , title : " The Matrix " , genre

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
2 views

Related Articles