Getting Started
Flapjack is an open-source search engine with an Algolia-compatible API. This guide gets you from zero to searching in under a minute.
Quick start with Docker
Section titled “Quick start with Docker”docker run -d -p 7700:7700 \ -e FLAPJACK_ADMIN_KEY=your-secret-key \ -v flapjack-data:/var/lib/flapjack \ ghcr.io/flapjack-search/flapjackOr download the binary directly:
curl -fSL -o flapjack https://github.com/flapjack-search/flapjack/releases/latest/download/flapjack-linux-arm64chmod +x flapjackFLAPJACK_ADMIN_KEY=your-secret-key ./flapjack --data-dir ./data --bind-addr 0.0.0.0:7700Verify it’s running
Section titled “Verify it’s running”curl http://localhost:7700/healthYou should see a 200 OK response.
Index some documents
Section titled “Index some documents”curl -X POST 'http://localhost:7700/1/indexes/movies/batch' \ -H 'X-Algolia-Application-Id: flapjack' \ -H 'X-Algolia-API-Key: your-secret-key' \ -H 'Content-Type: application/json' \ -d '{ "requests": [ {"action": "addObject", "body": {"objectID": "1", "title": "The Matrix", "year": 1999, "genre": "sci-fi"}}, {"action": "addObject", "body": {"objectID": "2", "title": "Inception", "year": 2010, "genre": "sci-fi"}}, {"action": "addObject", "body": {"objectID": "3", "title": "The Godfather", "year": 1972, "genre": "crime"}} ] }'Search
Section titled “Search”curl -X POST 'http://localhost:7700/1/indexes/movies/query' \ -H 'X-Algolia-Application-Id: flapjack' \ -H 'X-Algolia-API-Key: your-secret-key' \ -H 'Content-Type: application/json' \ -d '{"query": "matrix"}'Response:
{ "hits": [ { "objectID": "1", "title": "The Matrix", "year": 1999, "genre": "sci-fi", "_highlightResult": { "title": { "value": "The <em>Matrix</em>", "matchLevel": "full" } } } ], "nbHits": 1, "page": 0, "hitsPerPage": 20, "processingTimeMS": 0, "query": "matrix"}Next steps
Section titled “Next steps”- Migrate from Algolia — Switch from Algolia in under 5 minutes
- Use with InstantSearch.js — Build a search UI with Algolia’s frontend library
- API Reference — Full documentation of all endpoints
- Flapjack Cloud — Managed hosting, no ops required