Migrate from Algolia to Meilisearch

Moving from Algolia to self-hosted Meilisearch is a bounded export, settings mapping and relevance test project. This page sets out what moves cleanly, what needs rework and how to plan the cutover.

On this page

Migrate from Algolia to Meilisearch: what the move involves

The move is an export, a settings mapping, a front-end adapter swap and a relevance test. If your Algolia renewal, a licensing change, a residency requirement or lock-in is pushing you out, expect the data to be the easy part. Records come out through Algolia's browseObjects method, which the Meilisearch Algolia migration guide uses directly, and go into Meilisearch with addDocumentsInBatches in batches of 100,000. The harder work is translating how your index behaves: attributesForFaceting becomes filterableAttributes, sort replicas become sortableAttributes with the sort search parameter, and NeuralSearch maps to hybrid search with embedders. Plan for a front end change too, since InstantSearch needs the Instant Meilisearch adapter.

In most teams the work is shared. A platform or search engineer owns the export script, the index settings, the deployment and the cutover. A merchandising, content or product owner has to sign off on relevance, because Algolia's aroundPrecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes have no Meilisearch equivalent, and click analytics move to a separate Analytics API. Ask the owner to list the rules, synonyms and ranking behaviors your users depend on, then run a fixed set of real queries against both indexes before cutover. Confirm with your own environment how much of that list the Meilisearch guide does not cover.

Licensing is a decision to make before you start. The Meilisearch Community Edition is MIT licensed and fully open source. Enterprise Edition code falls under a commercial license or the Business Source License 1.1 and, according to the Meilisearch README, is not permitted in production without a commercial agreement. Check which features your current Algolia setup uses against the edition you plan to run, and get written confirmation of that position from Meilisearch before you commit. Your own effort and risk depend on index size, query volume and how many custom settings you carry, so scope those factors with your team before estimating the work.

Which Algolia features map to Meilisearch, and which need rework

This table compares common Algolia capabilities with their Meilisearch counterparts and marks each row as clean, needs rework or gap. Read the notes column first for the rows that change how your team configures search, since those drive most of the migration effort.

Algolia capabilityMeilisearch equivalentMigration note
Full-text search and typo toleranceBuilt-in typo tolerance and full-text searchClean. Confirm tolerance settings against your current Algolia ranking results during relevance testing.
Filtering and faceting (attributesForFaceting)filterableAttributes settingClean. The Meilisearch Algolia migration guide maps attributesForFaceting to filterableAttributes.
Sort replicassortableAttributes setting with the sort parameterNeeds rework. No replica indexes are needed, but each front end call must send the sort parameter explicitly.
NeuralSearchHybrid parameter with configured embeddersNeeds rework. The migration guide maps NeuralSearch to the hybrid parameter, but you choose and host the embedding model.
InstantSearch front endsInstant Meilisearch adapterNeeds rework. Widgets and request handling must move to the adapter and be tested in your templates.
Click and conversion analyticsSeparate Analytics APINeeds rework. Historical click data does not move with the index, so plan a separate export or retention decision.
aroundPrecisionNo equivalentGap. Design geo ranking differently or accept the change, and test results with real queries.
restrictHighlightAndSnippetArraysNo equivalentGap. Highlight output for array attributes will differ, so review front end rendering.
disablePrefixOnAttributesNo equivalentGap. Prefix behavior per attribute cannot be turned off, so test short-query relevance before cutover.
Rules and synonymsConfirm coverage in current Meilisearch docsConfirm first. Check the current documentation for how each rule and synonym type maps before you rebuild them.

What to export from Algolia and what to rebuild

Moving off Algolia splits into two jobs: getting records out of the index and getting the systems that depend on Algolia working against Meilisearch. The cards below cover the documented export path, the import step, and the front-end, indexing and analytics pieces you rebuild yourself.

Export records with browseObjects

Meilisearch's Algolia migration guide fetches all index data with the browseObjects method. Algolia's API reference describes the browse method as the documented way to export indices, and it returns up to 1,000 records per request, so large indices need many paginated calls. Run the export against each index you plan to move, not only the primary one, and confirm the record count in Meilisearch matches Algolia before you change any front end. Plan for the export to take longer on large catalogs.

Meilisearch migration guide

Use an API key with the browse ACL

The browse method needs an Algolia API key that carries the browse access control permission. Use a dedicated, short-lived key scoped to the indices being exported, and revoke it after the export is verified. An admin key with broad rights is unnecessary and widens the exposure of your catalog and customer-facing data. Check the key's permissions in the Algolia dashboard before the run, because a missing ACL typically fails late in a long export.

Import in batches and create the index

Upload the exported records with addDocumentsInBatches in batches of 100,000 records. The migration guide notes that this call creates the Meilisearch index if it does not exist, so you do not need a separate index creation step. Keep the batch size in mind when you map record attributes, because a malformed record can stop a batch. Check document counts and sample searches after each import, and keep the raw exported files so you can re-import without calling Algolia again.

Rebuild InstantSearch front ends

Sites built on Algolia InstantSearch need the Instant Meilisearch adapter to talk to Meilisearch, so widget code changes are required rather than a configuration swap. Inventory every widget, refinement list, sort selector and hit template in your front ends, then test each one against the migrated index. Also confirm that the three Algolia parameters with no Meilisearch equivalent (aroundPrecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes) do not change behavior your users rely on.

Rewrite server-side indexing jobs

Any process that pushes records to Algolia, such as catalog sync jobs, CMS publish hooks or nightly feeds, must be rewritten to write to Meilisearch. Map each job's Algolia calls to their Meilisearch equivalents, including how settings are applied, because Meilisearch separates index settings from search parameters. Test deletes, partial updates and full re-indexes separately, since a job that only handles upserts will leave stale records behind after a catalog change.

Move the analytics pipeline

Click analytics do not move with the records. The migration guide states that Meilisearch handles click analytics through a separate Analytics API, so event collection, storage and reporting must be designed and owned by your team. Decide where click and conversion events are sent, how long they are kept, and who can read them. Without this step, merchandising and relevance reviews lose their baseline data on cutover day.

The migration sequence from inventory to decommission

This sequence moves an Algolia search setup to self-hosted Meilisearch in controlled stages, so each index is proven against live query behavior before any traffic moves. Each step ends with a written artifact that the team reviews before continuing.

  1. Inventory indexes, settings and front-end calls

    List every Algolia application, index, replica, synonym set, rule set and API key in use, then record which front-end components and back-end services call each index. Your engineering lead owns the front-end inventory and your search owner signs off on the business rules. The output is an inventory sheet that maps each index to its settings export, its callers and its owner. Confirm the list is complete by checking Algolia's dashboard for indexes that no current code references but that still receive traffic.

  2. Export and import a pilot index

    Choose one low-risk index and export its records with the browse method, using an API key that has the browse permission. Import the records into a new Meilisearch index with addDocumentsInBatches, which creates the index if it does not exist. In the same pass, translate attributesForFaceting to filterableAttributes and sort replicas to sortableAttributes, then save the result as a settings file under version control. The pilot is done when the record count matches the Algolia index and the settings file applies cleanly.

  3. Map ranking, faceting and unsupported parameters

    Go through every Algolia setting and query parameter in the inventory and mark it as mapped, rebuilt or dropped. The Meilisearch migration guide lists aroundPrecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes as having no equivalent, so write down the behavior change for each one that your queries use. Click analytics move to a separate Analytics API and must be planned as their own workstream. The output is a signed mapping document that lists every gap and the owner who accepted it.

  4. Run a parallel comparison of both engines

    Send a copy of production queries to both Algolia and Meilisearch, and log the top results, facet counts and response times from each engine without showing Meilisearch results to users. Include empty queries, typos, filters, facet combinations and queries from your top search logs. Your platform team runs the mirror, and the search owner reviews the differences. The step closes when the differences are categorized as expected, a fix in the settings file, or a defect to resolve before cutover.

  5. Test relevance against a signed test set

    Build a relevance test set of queries with the results each one should return, drawn from merchandiser or editor expectations and from the parallel run. Score Meilisearch against it, and compare the scores with the current Algolia results for the same queries. Confirm the InstantSearch front end works through Instant Meilisearch on staging, including highlighting and facet widgets. The artifact is a relevance report with pass or fail per query, signed by the business owner of the index.

  6. Approve cutover and rollback plan

    Write a cutover checklist that names the feature flag or configuration switch that routes traffic, the order of indexes, the monitoring alerts to watch, and the rollback steps that return traffic to Algolia. Keep Algolia indexes and API keys active during the rollout so the rollback works without a re-export. Rehearse the rollback on staging before the production date. The checklist is complete when the operations lead and the business owner have signed it and the rollback has been tested once.

  7. Monitor, then decommission Algolia

    After cutover, compare search error rates, latency, zero-result rates and conversion metrics against the baseline for the agreed observation period. Keep the Algolia indexes read-only and available for rollback until the period ends and the business owner accepts the results. Then delete the Algolia indexes, revoke API keys, cancel the subscription, and archive the settings files and test reports. Ask your Algolia account team to confirm the final billing date and data deletion process in writing before you close the contract.

How the relevance check and parallel run work

Build the relevance check before you touch production traffic. Pull a fixed set of representative queries from Algolia analytics or your search logs, favoring the head queries that drive most clicks plus a sample of long-tail and zero-result queries. Freeze that list in a file so every test run uses the same inputs. Run each query against the live Algolia index and the Meilisearch index with the same filters, sorts and page size, then record the top results, their order and the highlighted snippets. Have merchandisers review the differences side by side, because they know which products should win for a given query and which ranking changes would hurt sales. Store their decisions as the acceptance criteria for cutover.

Meilisearch separates index settings from search parameters, so the Algolia mapping has to be checked in two places. Index-level settings such as filterableAttributes, sortableAttributes, searchableAttributes and rankingRules are stored on the index, while per-request options such as filters, sort, attributes to retrieve and highlight behavior are sent with each query. Walk through every search parameter your front end sends and confirm that an equivalent exists in the request you build. The Meilisearch Algolia migration guide lists aroundPrecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes as having no equivalent, so decide in advance how each of those behaviors will be handled or accepted.

Treat the settings mapping as a starting point, not a finished ranking. Algolia's custom ranking and Meilisearch's ranking rules order results differently, so the same attribute can produce different top results. Test typo tolerance and prefix behavior on your own queries, adjust the ranking rules and attribute order in small steps, and rerun the frozen query set after each change. For a parallel run, route a small share of traffic or a staging copy to Meilisearch, compare click-through and zero-result rates against Algolia over a period you agree with the business, and keep Algolia active until the merchandisers sign off. Illustrative example: if a query for "running shoe" ranks a sponsored product first on Algolia but a plain-text match first on Meilisearch, the fix is a ranking or override change that you retest, not a cutover decision.

What drives cost and duration of the Algolia to Meilisearch move

This table lists the factors that change the labour and running cost of moving from Algolia to self-hosted Meilisearch, with why each matters and how to reduce it. Read it as a checklist for scoping and for reviewing a written quote, since the largest items are often migration labour, relevance sign-off and the operations you take on after cutover.

DriverWhy it changes cost or effortHow to keep it down
Number of indexes and recordsEach index needs its own settings, import run and verification. Browse exports are paged at up to 1,000 records per request, so large catalogs take longer to export before Meilisearch import begins.Consolidate unused or duplicate indexes before export. Export in batches and confirm record counts per index before import.
Record size and attribute countLarge records and many attributes increase export time, import volume and the RAM needed on the Meilisearch host, which is a recurring hosting cost.Send only searchable, filterable, sortable and displayed attributes. Strip embedded binaries and unused fields from records before import.
Front ends and widgetsEach InstantSearch front end needs its adapter change and regression testing. Sites with custom widgets or several apps add testing labour.Inventory every Algolia client call and widget first. Confirm which front ends use the Instant Meilisearch adapter and which need custom code.
Custom ranking and rules depthAlgolia ranking, custom ranking and query rules have to be mapped to Meilisearch settings by hand. Aroundprecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes have no equivalent, so their behavior must be redesigned.List every ranking rule and query rule with its business purpose. Remove rules no one owns and document the replacements for the three unsupported parameters.
NeuralSearch or embeddersIf NeuralSearch is in use, Meilisearch needs the hybrid parameter with embedders configured. You then host or call an embedding model and tune hybrid relevance, which is additional build and running work.Confirm whether NeuralSearch is actually used in production. If it is, price the embedding model hosting and reindexing separately in the quote.
Analytics retentionClick analytics move to a separate Analytics API, so event collection, storage and any dashboards must be rebuilt. Retention period sets storage size and reporting effort.Decide which metrics merchandisers rely on and the retention period needed for them. Export historical Algolia analytics if policy requires it, where Algolia allows.
Hosting and high availabilitySelf-hosting means you choose the servers, redundancy, failover and scaling. Operators manage updates, backups and scaling themselves, so these are recurring costs and staff time.Size the environment against expected traffic and index size. Ask the quote for redundant nodes, backup schedule, monitoring and an upgrade cadence.
Relevance sign-offRelevance testing against real queries and business expectations often takes more time than the data move itself. Sign-off needs named owners from search, merchandising and product.Build a fixed query set from search logs before cutover. Agree written acceptance criteria and who approves each result set.

What usually goes wrong and how to prevent it

Most failed Algolia to Meilisearch migrations break in predictable places: relevance, parameters with no equivalent, analytics, licensing, front-end wiring, capacity and cutover planning. Each card below names one failure and the check that prevents it before users see the new index.

Ranking drift after cutover

Algolia ranking came from ranking criteria, custom ranking, searchable attribute order and typo settings working together. Meilisearch uses its own ranking rules and attribute ordering, so the same query can return a different top result even when every record imported correctly. Build a fixed set of real queries with expected top results from Algolia, run them against Meilisearch, and review the differences with merchandisers or content owners before switching traffic.

Algolia migration guide

Dropped search parameters

The Meilisearch Algolia migration guide states that aroundPrecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes have no equivalent. Any geo search that depends on aroundPrecision or any snippet layout that depends on restrictHighlightAndSnippetArrays will change behavior silently. Inventory every search call in your front end and backend for these parameters, document the replacement behavior you accept, and sign it off with the product owner.

Lost click analytics history

Click and conversion analytics do not move with the records. Meilisearch handles them through a separate Analytics API, so the history you built in Algolia stays in Algolia unless you export it yourself. Before cutover, export the reporting you need to keep, store it in your own warehouse, and confirm with the business owners which dashboards must still work so that trend comparisons are not lost.

Enterprise features without a commercial agreement

The Community Edition is MIT licensed, but the Enterprise Edition is governed by a commercial license or the Business Source License 1.1 and is not permitted in production without a commercial agreement. Teams often enable an Enterprise feature during a proof of concept and forget it when they go live. Review the enabled features and configuration against the license terms, and record who holds the agreement before the production rollout.

Meilisearch repository

InstantSearch widgets breaking

InstantSearch front ends call Algolia directly and expect its response shape. Meilisearch's guide says these front ends need the Instant Meilisearch adapter, so a direct swap of the search client will fail on the first request. Pin the adapter version, test every widget (facets, pagination, hits, autocomplete) in a staging build, and check the rendered results against the Algolia build on the same query set.

Under-sized RAM and missing backups

Meilisearch is an in-memory-oriented engine that needs enough RAM for the index, and self-hosting means you own sizing, scaling and recovery. Teams that size from the Algolia record count alone often run short during bulk imports or under peak traffic. Load-test with your largest index, set resource limits and alerts, and schedule backups with a restore test so that a failed node does not leave the search page empty.

Cutting over without a rollback path

A big-bang switch removes the fallback you need when relevance or latency problems appear after launch. Keep the Algolia index live and writable during the parallel run, route a small share of traffic to Meilisearch behind a feature flag, and keep the ability to switch back by configuration. Define the rollback trigger in advance, such as a failed relevance review or error rate, and decommission Algolia only after the agreed observation period ends.

How the move differs by catalog size and starting point

A small catalog on a single site that uses InstantSearch usually has one index, a short list of searchable attributes and few or no custom rules. The export is straightforward: fetch all records with browseObjects and load them with addDocumentsInBatches, which Meilisearch's Algolia migration guide describes. The main new work is the front end, because InstantSearch widgets need to point at the Instant Meilisearch adapter instead of Algolia. Most of the testing effort goes into comparing search results for your top queries and checking typo tolerance and facets on the pages that matter most.

  • Index count: Confirm you have one index, or a small number, before you plan the mapping.
  • Facets: Map attributesForFaceting to filterableAttributes and recheck every facet on the site.
  • Front end: Replace the InstantSearch client configuration with the Instant Meilisearch adapter.
  • Parameters: Review whether aroundPrecision, restrictHighlightAndSnippetArrays or disablePrefixOnAttributes are set, since the migration guide lists them as unsupported.
  • Operations: Decide who applies updates and backups, because a single small instance still needs them.

Ask your team to list every query that drives traffic, then confirm each one returns the expected results before cutover.

Questions teams ask before moving from Algolia to Meilisearch

How much effort and time does an Algolia to Meilisearch migration take?

The effort depends mostly on how many indexes you have, how many records each holds, and how much of your Algolia configuration (rules, synonyms, custom ranking and faceting) your front end depends on. The export and import steps are mechanical: Meilisearch's Algolia migration guide uses browseObjects to fetch index data and addDocumentsInBatches to upload it in batches of 100,000 records. The longer work is mapping settings, rebuilding rules by hand and testing relevance. Ask your team to inventory indexes, record counts and rule sets first, then ask any implementation partner to base its quote on that written inventory.

What drives the cost of moving off Algolia?

Costs fall into one-time work and recurring running costs. One-time work includes export scripting, settings mapping, front-end changes, relevance testing and cutover. Recurring costs are the servers, storage, backups, monitoring and the staff time to patch and scale Meilisearch, since the project's pricing page states that self-hosting is free of license fees but operators manage updates, backups and scaling. Ask for a quote that separates these components, and compare it with your current Algolia invoice over the same period.

Can our in-house team run this migration alone?

A team with search, backend and front-end experience can usually run the export and import itself, because the tooling is documented and the steps are scripted. The risk sits in relevance. Algolia ranking is tuned through settings, custom ranking and rules that may not map one to one, and some Algolia parameters have no equivalent in Meilisearch. Confirm internally who owns relevance sign-off and whether that person has time during the cutover window. If not, a fixed-scope engagement with written deliverables can cover the gap.

What do we need to provide before the work starts?

Prepare four inputs. First, a list of every Algolia index with its record count and update frequency. Second, an API key with the browse permission, since Algolia's API reference states that browse needs the browse ACL and returns up to 1,000 records per request. Third, a set of real sample queries with the results you expect, which becomes your relevance test suite. Fourth, merchandiser time to review pinned results, synonyms and boosted items, because those rules must be rebuilt by hand rather than copied automatically.

Is the Community Edition of Meilisearch enough for production?

The Community Edition is MIT licensed and fully open source, so it covers the core engine. The Enterprise Edition is governed by a commercial license or the Business Source License 1.1 and the Meilisearch README states it is not permitted in production without a commercial agreement. Check which features your product needs against the Community feature set, including typo tolerance, filtering, faceted search, hybrid search and multi-tenancy, and confirm licensing terms directly with Meilisearch before you commit to a design that depends on Enterprise-only capabilities.

What happens to Algolia analytics and rules during the move?

Algolia rules, synonyms and settings must be recreated in Meilisearch, so plan a manual review rather than an automatic copy. Meilisearch's guide states that aroundPrecision, restrictHighlightAndSnippetArrays and disablePrefixOnAttributes have no equivalent, so those behaviors need a front-end or ranking workaround. Click analytics move to a separate Analytics API, which means historical event data needs its own export and retention plan. Confirm with your analytics owner how much history you must keep for reporting or audit purposes.

How do cutover and rollback work?

Run Meilisearch in parallel with Algolia, then switch traffic in stages while comparing results on your sample query set. Keep Algolia active until relevance sign-off and until you have confirmed record counts match between the two systems. For rollback, keep the Algolia index and the front-end switch as a single configuration change so you can return traffic quickly. Ask any partner to document the cutover runbook, the rollback trigger conditions and who has authority to call a rollback before the window opens.

Do our InstantSearch widgets need to be rewritten?

Not necessarily. Meilisearch's guide states that InstantSearch front ends need the Instant Meilisearch adapter, which lets existing InstantSearch components talk to Meilisearch. Test the widgets you use, especially filtering, faceting and pagination, because behavior differences show up there first. Confirm the adapter version you plan to use is compatible with your Meilisearch release, and check the Meilisearch releases page before you pin a version in production.

How data and traffic move during the parallel run

The run starts with Algolia's browseObjects export into an export store, which feeds addDocumentsInBatches into a Meilisearch index. Settings mapping (filterable, sortable and hybrid settings) is applied before the front end is pointed at Meilisearch through Instant Meilisearch for a subset of traffic. A relevance test loop compares results against Algolia, and cutover stays reversible: if results regress, traffic returns to Algolia while the index is corrected. Check that every record and setting has moved before any traffic shifts.

Data and query paths between Algolia, Meilisearch and the front end during cutover.

How DeployOpen scopes and runs the Algolia to Meilisearch move

DeployOpen plans, implements, integrates, hardens, backs up, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For this move, that means a written scope covering record export, Meilisearch settings, front-end adapter changes and relevance testing before cutover.

How we scope

  • Inventory every Algolia index, its records, facets, sort replicas, rules and synonyms before any work starts.
  • List which Algolia parameters map to Meilisearch settings and which, such as aroundPrecision, need a documented decision.
  • Agree deliverables, timelines and acceptance tests in writing, since most engagements are fixed-scope.

How we build

  • Export records with the browseObjects method using a key that has the browse permission, then import them in batches.
  • Configure filterableAttributes, sortableAttributes and hybrid embedders, and swap InstantSearch calls for the Instant Meilisearch adapter.
  • Run relevance tests against sample queries from your own search logs and compare results with the current Algolia output.

How we hand over

  • Deliver the settings as versioned configuration, plus a runbook for reindexing, schema changes and key rotation.
  • Document every Algolia feature that has no Meilisearch equivalent, along with the agreed replacement or accepted gap.
  • Provide the relevance test results and cutover checklist so your team can repeat the checks independently.

How we support

  • Cover ongoing upgrades, backups, monitoring and continuous testing through a retainer after cutover.
  • Confirm which Meilisearch release line you run and plan maintenance updates with your change process.
  • Ask us to repeat relevance tests whenever you change ranking rules, embedders or the record schema.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.