Migrate from Algolia to Typesense

A planning guide for moving site and app search from Algolia to self-hosted Typesense: what moves cleanly, what needs rebuilding, and how to cut over safely.

On this page

How to migrate from Algolia to Typesense without breaking search

If your Algolia renewal, licensing change, residency requirement or lock-in concern has pushed you toward Typesense, the migration is a records export, a typed collection schema, a re-import, and a front-end adapter change, plus a deliberate rebuild of query rules, synonyms and analytics. That is the work, and it is bounded. Platform or search engineers usually own the export, schema and import, with front-end engineers handling the InstantSearch changes. Typesense's own migration guide describes the core steps, and the effort is mostly in relevance checks and the features you decide to replace.

The data path follows the documented flow. Export records with the Algolia CLI as JSONL, copy objectID into a Typesense id field, then load them through the documents import endpoint with action=upsert so reruns are safe. Because Typesense type-checks documents against a schema you define, define the collection schema before importing and decide the field types for facets, sortable attributes and searchable fields. Expect HTTP 503 responses during high-volume writes and build retries with a pause into the import job. Query rules convert to Typesense overrides with the provided utility, but review each converted rule against live queries rather than trusting the conversion output alone.

The risk sits in the gaps. Typesense states that the APIs are not wire-compatible by design and that it is at about 85% feature parity with Algolia, with server-side A/B testing, built-in event tracking and out-of-the-box personalization and recommendations missing. Before cutover, list every Algolia feature your site uses, mark each as migrated, rebuilt in your application, or dropped, and get the owner of each decision to sign it off. Confirm with Typesense which features in your plan exist in the version you deploy, and run a relevance comparison on real query logs before switching traffic.

Which Algolia features map to Typesense, and which need rework

This table maps common Algolia capabilities to their Typesense equivalents and marks each as clean, needs rework or gap. Because the APIs are not wire-compatible, even clean rows need client code changes, so treat the status as a guide to effort. Confirm replicas, ranking and typo settings against the Typesense docs before cutover.

Algolia capabilityTypesense statusWhat to do
Full-text search with typo toleranceCleanTypesense is a typo-tolerant engine. Define typed fields in the collection schema, then tune typo settings per query and confirm the results against your test queries.
Faceting and filtersNeeds reworkDeclare facet fields in the schema, since Typesense type-checks documents. Rewrite filter strings and facet requests to Typesense syntax.
SynonymsNeeds reworkRecreate synonym sets in Typesense and test multi-word and one-way synonyms, because the behavior is not identical to Algolia.
Query rulesNeeds reworkUse the provided utility to convert Algolia rules into Typesense overrides, then review each converted rule by hand against your merchandising intent.
Ranking and replicasNeeds reworkMap custom ranking and sort replicas to Typesense sort and ranking settings. Confirm the approach in the Typesense docs, since replicas do not carry over directly.
InstantSearch widgetsNeeds reworkThe typesense-instantsearch-adapter lets most existing widgets keep working with small changes. Test each widget and request path.
Vector and semantic searchNeeds reworkTypesense includes vector search, but you must define vector fields, generate or supply embeddings, and size memory per vector dimension.
A/B testingGapTypesense does not provide server-side A/B testing. Plan an external experimentation layer or drop this workflow.
Built-in event tracking, personalization and recommendationsGapThese out-of-the-box features are missing. Plan to build click and conversion pipelines and recommendation logic yourself.

What data and integrations move, and what you rebuild

Records move out of Algolia through its browse method or the Algolia CLI, then load into a typed Typesense collection. Configuration does not move as a block: query rules convert, front-end widgets adapt, and behavior tied to Algolia's hosted services has to be rebuilt or replaced.

Export records with browse

Algolia's browse method returns up to 1,000 records per request and needs an API key with the browse ACL. It is the documented export method, so the key you use should be scoped to browse on the source index and revoked after the export. Check record counts per index against the source before you delete anything in Algolia, and confirm that your plan and key policies allow the volume you expect.

Algolia browse docs

Export JSONL with the Algolia CLI

The Typesense guide uses the Algolia CLI to write records as JSONL, which gives you a file you can version, inspect and replay. Keep the exported files in your own storage with access controls, since they contain full product or content data. Run one export per index and store the index name and export date alongside each file so reloads stay traceable.

Map objectID to a Typesense id

Algolia uses objectID as the record key, and the Typesense guide copies it into an id field. Confirm that every record has a unique, stable objectID before import, because duplicates will overwrite each other. Decide whether to keep the original objectID as a separate field for reconciliation with Algolia analytics or downstream systems.

Define a typed schema and upsert

Typesense type-checks documents against a collection schema, so fields that Algolia accepted loosely need explicit types before import. Load with the documents import endpoint using action=upsert, which lets you rerun the load safely. Writes are synchronous and can return HTTP 503 under heavy load, so the import script should retry after a pause and log failed batches.

Typesense migration guide

Convert query rules and keep widgets

A Typesense utility converts Algolia query rules into Overrides, but converted rules need a review against the original intent, since pinning and filtering behavior can differ. The typesense-instantsearch-adapter lets existing InstantSearch front ends keep working with small changes. Test each widget's facets, sorting and typo handling against the new index before you switch traffic.

Rebuild analytics, tests and recommendations

Typesense does not provide server-side A/B testing, built-in event tracking, or out-of-the-box personalization and recommendations, so these features must be rebuilt or replaced in your own stack. Decide early which event pipeline will capture clicks and conversions, which experiment tool will run tests, and which recommendation logic will replace Algolia's features. Budget this as separate engineering work, since it does not move with the index.

Migration sequence from inventory to decommission

This sequence takes an Algolia search setup to a self-hosted Typesense cluster in a controlled order, so each stage produces evidence that the next one depends on. Relevance is checked against live Algolia results before any traffic moves, and the old service stays available until the cutover is proven.

  1. Inventory indices, settings, rules and widgets

    Engineering and the search owner list every Algolia index, its record count and size, its searchable and faceted attributes, ranking settings, replicas, synonyms, query rules and every front-end widget that calls Algolia. Export the index settings and rules with an API key that has the required ACLs, and note which rules rely on features Typesense does not offer, such as server-side A/B testing or built-in personalization. The step is done when the team has an inventory file and a short list of features to rebuild or drop, signed off by the business owner for each index.

  2. Pilot one index with a typed schema

    Choose one low-risk index and write a Typesense collection schema that declares each field and its type, since Typesense validates documents against the schema where Algolia does not. Export the records with the Algolia CLI as JSONL, map objectID to the Typesense id field, and load them into a non-production Typesense server. The output is a version-controlled schema file and an import log that lists any documents rejected for type mismatches, which must be fixed in the source data or schema before the pilot is accepted.

  3. Import with upsert and retry on HTTP 503

    Run the import through the documents import endpoint with action set to upsert, so reruns update existing documents instead of duplicating them. Typesense writes are synchronous and can return HTTP 503 during high-volume writes, so the import script should retry failed batches after a pause and record each retry. Engineering confirms the import is complete when document counts in Typesense match the exported Algolia counts for each index, and when a second full run leaves counts unchanged.

  4. Convert query rules and build a relevance test set

    Use Typesense's utility to convert exported Algolia query rules into Overrides, then review each converted rule by hand, because pinning and filter behavior can differ. The search owner builds a relevance test set of representative queries, including typos, synonyms, empty results and top-selling terms, with expected results from the live Algolia index. The step produces a test file and a list of queries whose results differ, each marked as accepted, fixed or blocked.

  5. Run a parallel comparison of results

    Send the same queries to Algolia and Typesense for the duration of a agreed comparison window, with the application still serving Algolia results to users. Compare the top results, result counts, facet counts and zero-result rates, and log the differences in a shared report. Ask the team to confirm the thresholds for accepting differences before the run starts, so the decision is made on agreed criteria rather than on individual queries. The output is a signed comparison report per index.

  6. Cut over behind a feature flag

    Point the InstantSearch front end at Typesense through the typesense-instantsearch-adapter, with a feature flag or configuration switch that selects Algolia or Typesense per index and per audience. Start with an internal group, then widen traffic while watching error rates, latency and HTTP 503 responses from the Typesense cluster. The cutover runbook records the switch steps, the rollback switch and the owner who can flip it, and the step is complete when all traffic runs on Typesense and the rollback path has been tested.

  7. Decommission Algolia and archive exports

    After a period the team agrees in advance and the business accepts, disable Algolia write paths, revoke API keys and stop the sync jobs. Keep a final encrypted export of records, settings and rules in your own storage so the configuration can be audited or restored, and confirm the retention terms of that archive with compliance. The step closes when Algolia keys are revoked, the subscription is ended in writing, and the decommission record is filed with the other migration evidence.

What a self-hosted Typesense cluster needs before go-live

Start with memory, because Typesense is an in-memory engine and that decides the server size before anything else. Typesense's system requirements guide says keyword search typically needs 2 to 3 times the size of your searchable fields in RAM. Vectors add more: each vector needs 7 bytes of memory per dimension, so a catalog embedded at a few hundred dimensions multiplies the footprint quickly. If you plan to use built-in ML models, budget roughly 2 to 6 GB of extra RAM for them. Export your Algolia record count and the size of the attributes you index, then measure a staging import against those numbers rather than trusting a single estimate. Confirm the figures against the current guide before you order hardware.

Plan for a highly available cluster rather than a single node. The guide sets a minimum of 2 vCPUs per node and strongly recommends a 3-node or 5-node cluster for production, which tolerates one or two node failures respectively. Typesense uses Raft consensus, so writes during the Algolia import and the cutover window depend on a healthy quorum. Also remember that the migration guide notes writes are synchronous and can return HTTP 503 during high-volume imports, so your import script should retry after a pause. Decide who is paged when a node drops, how nodes are spread across failure domains, and how you will restore a node from snapshot before you run a production load test.

Review the GPL-3.0 server license with counsel before go-live. The Typesense project explains that the GPL lets a company run modified server code internally without publishing those changes, as long as it does not distribute the software. Client libraries are Apache licensed, so your front-end code is handled differently from the server. Whether an internal deployment, a hosted offering for customers or a bundled appliance counts as distribution is a legal question for your own counsel to settle. For comparison only, Typesense Cloud offers dedicated clusters from 0.5 GB to 1024 GB of memory across three to seven nodes, with bandwidth billed separately. Use that as a benchmark for what a managed equivalent would cost to size, and ask whether your operations team can match its uptime and patching.

What drives migration cost and duration

This table lists the factors that move the cost and effort of an Algolia to Typesense move, with why each one matters and how to keep it down. Read each row against your own index inventory, and use the one-time and recurring rows to shape what you ask for in a quote.

DriverWhy it changes cost or effortHow to keep it down
Record count and size against RAMTypesense holds indexes in memory, and its system requirements guide puts keyword search at roughly 2 to 3 times the size of searchable fields in RAM. Larger catalogs mean bigger servers and longer test imports.Trim non-searchable attributes before export, and size a test cluster on a representative sample before committing to node memory.
Number of indices and settingsEach index needs its own typed schema, field list and ranking settings. Many indices multiply schema design, validation and testing work.Consolidate indices where the data model allows, and reuse one schema template for similar record types.
Query rules and synonyms to convertAlgolia rules and synonyms do not carry over automatically. Typesense provides a conversion utility for query rules to overrides, but each converted rule still needs review for behavior.Export rules first, retire unused ones, and convert the rest in batches with a written test case for each.
InstantSearch widgets and custom front-end callsMost InstantSearch widgets work through the typesense-instantsearch-adapter with small changes, but custom calls to the Algolia client need rewriting by hand.Inventory every front-end call to Algolia, and separate standard widgets from custom code so the custom work is scoped early.
Relevance tuningRanking, typo tolerance and faceting behave differently in Typesense, so result quality usually needs measured tuning against real queries.Capture a set of top queries with expected results, then tune against that set rather than by ad hoc review.
Analytics and personalization dependenciesTypesense does not include server-side A/B testing, built-in event tracking or out-of-the-box personalization and recommendations, according to its migration guide. Each dependency you use needs a replacement design and its own build and run cost.Identify which Algolia analytics and recommendation features are in use, and decide early whether to rebuild them, drop them or move them to a separate tool.
Cluster topology and high availabilityThe migration guide recommends a highly available 3-node or 5-node cluster for production, which multiplies server cost and adds setup for Raft-based clustering.Run a single node for test and staging, and price the production cluster separately so the topology decision is visible in the quote.
Internal skillsTeams that already run Linux servers, reverse proxies and monitoring need less onboarding than teams new to self-hosted search, and schema and relevance work needs developers and search-aware product owners.Name the owner for each area (infrastructure, schema, relevance, front end) before work starts, and ask the implementer which parts they will hand over.
One-time versus recurring costsOne-time costs include export scripting, schema design, rule conversion, front-end changes, relevance testing and cutover. Recurring costs include server and HA hosting, monitoring, backups, and upgrades such as the move between Typesense releases.Ask for the one-time and recurring items as separate lines in the quote, with hosting assumptions stated for each node count.

What usually goes wrong and how to prevent it

Most failed Algolia to Typesense migrations break in predictable places: the data, the import, the ranking, the features that never existed in Typesense, the sizing, and the cutover. Each card below names one risk, why it matters for this move, and the check that prevents it before production traffic depends on the new cluster.

Schema type mismatches on import

Typesense type-checks every document against the collection schema, while Algolia accepts records loosely. A field that holds a number in some records and a string in others, or an array where you declared a scalar, will fail the import. Before loading, sample exported JSONL from the Algolia CLI, check each attribute's type across all records, and declare the schema with explicit types, optional fields and a default sorting field. Run a small batch import first and read the error responses.

Typesense migration guide

HTTP 503 during bulk imports

Typesense writes are synchronous, and high-volume imports can return HTTP 503. An import script that treats 503 as a permanent failure will silently leave gaps in the index, and the counts may look close enough to miss. Build the loader to retry failed batches after a pause, log every rejected document with its objectID, and compare the final document count in each collection against the record count from the Algolia export. Use action=upsert so retries do not create duplicates.

Relevance drift from ranking differences

Algolia ranking rules, custom ranking and replicas do not map one to one onto Typesense sort and ranking settings. Results can reorder even when the records are identical, and merchandisers often notice before engineers do. Write down the Algolia ranking order and the business-critical queries, then run the same query set against both engines and review the top results with the people who own relevance. Treat the migration as a relevance project, not only a data copy.

Lost A/B tests and personalization

Typesense does not provide server-side A/B testing, built-in event tracking, or out-of-the-box personalization and recommendations. Teams that rely on these features in Algolia may find them gone at cutover, with no alert from the application. Inventory which Algolia features are in use, including analytics, recommendations and experiments, before the migration starts. Decide for each one whether to rebuild it, move it to another tool, or accept its removal in writing.

Undersized RAM for the index

Typesense keeps its search index in memory, and keyword search typically needs two to three times the size of the searchable fields in RAM. Vectors add memory per dimension, and built-in ML models need additional RAM. A node sized for the raw JSON export will run out of memory under load. Measure the searchable field size from the export, add vector and model overhead if used, and size the nodes with headroom for growth. Ask the vendor or your partner to confirm figures for your own record shape.

RAM versus field size
2 to 3x
System requirements guide

Single node with no high availability

A single Typesense node is a single point of failure for every storefront or app query that depends on it. The system requirements guide recommends a highly available three- or five-node cluster for production, tolerating one or two node failures. Teams that run one node for the pilot often keep it in production. Plan the cluster size before cutover, deploy it with Raft quorum in mind, and test a node failure in staging so the failover behavior is known before users depend on it.

Recommended production nodes
3 or 5

Cutover without a rollback path

A cutover that switches the front end to Typesense with no way back leaves the team stuck if relevance or traffic issues appear. Keep the Algolia indices live and in sync until the new search has passed relevance and load checks. Put the search endpoint behind a configuration switch so the application can point back to Algolia quickly, and define in advance who makes that call and on what measures. Retire Algolia only after a defined observation period.

How the migration differs by catalog size and starting point

A site with a few indices and a modest number of records usually has the simplest path. The export is one pass per index, the schema is short, and the main work is checking that search results match what users expect. Because Typesense keeps its working set in memory, the sizing question is mostly about how much RAM the searchable fields need, not about how many requests you send.

  • Export: run the Algolia CLI once per index and keep the JSONL files as a dated backup before any changes.
  • Schema: define one typed collection per index, with fields and facets declared up front, since Typesense checks documents against the schema.
  • Overrides: convert the few query rules you actually use with the conversion utility, then review each one by hand.
  • Operations: a single node is possible for testing, but plan a highly available cluster before production traffic depends on it.

Before cutover, confirm the record counts match in both engines and run your top queries side by side.

Questions buyers ask before migrating from Algolia to Typesense

How much effort does a migration from Algolia to Typesense take?

Effort depends mainly on the number of indices, the shape of the records, how many query rules and synonyms you rely on, and how much of your relevance tuning must be rebuilt. The export and import steps are usually the smaller part. The larger items are the typed collection schema, which Typesense requires because it type-checks documents, and the relevance check against your real queries. Ask any partner to split its estimate into schema design, export and import, rule conversion, front-end changes and relevance testing, so you can see which parts scale with your catalog and which do not.

What drives the cost of moving search off Algolia?

You pay for people's time, and possibly for the servers you need during the work. The main cost drivers are the size and variety of your indices, how much Algolia-specific configuration (replicas, ranking formulas, rules, synonyms, personalization) you use, and whether your front end uses InstantSearch. Costs that recur after cutover are the Typesense servers, which Typesense sizes by RAM, plus a highly available cluster for production and monitoring. Ask for a quote that separates one-time migration work from ongoing hosting and support, and that states which items are excluded.

How long does an Algolia to Typesense migration take?

Duration varies with the factors that set effort: index count, schema complexity, rule volume and how many front-end surfaces call Algolia. Typesense's own guide describes the steps as export, schema, import and rule conversion, but it does not give a timeline for your data, so treat any single number with caution. A realistic plan separates a test environment with a full import, a relevance comparison against live query logs, a staged front-end cutover and a rollback path. Ask for the milestones and the client dependencies in writing before work starts.

What does our team need to provide for the migration?

You need an Algolia API key with the browse permission for export, access to the Algolia index settings and rules, and a person who knows which queries matter most to the business. Your engineers should own the front-end integration and the target infrastructure, including where Typesense runs and how it is secured. Someone must also decide how product data changes will be synchronized during cutover, because a snapshot export will not capture updates made after it. Confirm these responsibilities with the partner in the written scope.

Can we migrate ourselves using the Typesense guide?

Yes, for a small, simple index with a few settings, a capable engineering team can follow the Typesense migration guide, which covers exporting with the Algolia CLI as JSONL, mapping objectID to a Typesense id field, importing with action=upsert and converting query rules. The guide itself states that the APIs are not wire-compatible by design, so the work includes reviewing each Algolia setting. Teams often need outside help for relevance tuning, production sizing, high availability and security hardening, which are the areas where mistakes are hardest to see.

What happens to our InstantSearch widgets?

Most existing InstantSearch widgets keep working because Typesense provides the typesense-instantsearch-adapter, which Typesense says lets most widgets run with small changes. Confirm this against your own widgets, custom connectors and any Algolia-only features they depend on, since behavior can differ in edge cases such as faceting or highlighting. Plan a test pass for each search surface, including mobile and any server-rendered pages, before switching the production front end.

Do A/B testing and recommendations carry over to Typesense?

No, not as built-in features. Typesense's Algolia migration guide states that server-side A/B testing, built-in event tracking and out-of-the-box personalization and recommendations are missing, and it puts overall feature parity at about 85%. If you rely on these, you need to rebuild them with your own analytics pipeline, experimentation tooling or recommendation logic. Ask any partner to list each Algolia feature you use and mark whether it maps, needs rebuilding or will be dropped.

How does Algolia's export limit affect large indices?

Algolia's browse method returns up to 1,000 records per request and needs an API key with the browse ACL, so large indices require many paginated calls. The export is the documented route, but it takes longer as the record count grows and must be planned around rate limits and ongoing catalog changes. For very large catalogs, plan incremental syncs for records changed during export and verify record counts and sample documents after import. Ask how the partner will validate completeness and handle failed or partial pages.

How records and traffic flow during the parallel run

The run starts with the Algolia CLI exporting each index as JSONL, then a transform copies objectID into a Typesense id field. Documents go to a typed collection through the documents import endpoint with action=upsert, retried after a pause when Typesense returns HTTP 503. The existing InstantSearch front end reads from both engines during the comparison, and a traffic switch sends users back to Algolia if relevance or latency checks fail. Confirm that record counts and sample query results match before moving any traffic.

Export, transform, import and the traffic switch with its rollback path.

What to confirm with Typesense and in your own environment

Before you commit to Typesense, confirm the current release details on the typesense/typesense GitHub releases page. Release lines move, and the version you test against should be the version you run in production, with the same patch level. Then check the exact ranking and replica equivalents in the Typesense Algolia migration guide and its API documentation. Algolia's replicas, custom ranking and attribute ordering do not map one to one, so ask your search engineer to write down, for each Algolia index, which sort orders and ranking rules you depend on and where each one lands in a Typesense collection. Treat any gap as a decision item, not a detail to fix after cutover.

Next, confirm which Algolia features your plan actually includes and which of them your front end calls. Typesense documents that A/B testing, built-in event tracking and out-of-the-box personalization and recommendations are missing, so list every Algolia capability your team uses, including analytics dashboards, query suggestions, and any AI or NeuralSearch options, and check your current contract and invoices against that list. Ask your Algolia account contact what your plan includes and whether you are entitled to export in the form you need. Anything you rely on that Typesense lacks must be rebuilt, bought elsewhere, or dropped, and that work belongs in the migration plan and budget.

Finally, confirm your own hosting and data residency requirements before any production data moves. Decide which region and which network segment will hold the indexes, who holds the admin API key, and how records containing personal data are logged, retained and deleted. Typesense's system requirements guide describes RAM sizing and a 3-node or 5-node cluster for production, so confirm with your infrastructure team that the memory and cluster footprint fits your environment and change controls. Record the answers in a short decision note that your security and compliance reviewers can sign off on.

How DeployOpen scopes and runs your Typesense migration

DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a move from Algolia to Typesense, that means agreeing the scope in writing, building the Typesense cluster and import pipeline in your environment, and handing over documentation your team can operate.

How we scope

  • Inventory the Algolia indices, settings, synonyms, query rules and InstantSearch widgets that must carry over
  • Agree in writing which record exports, schema mappings and rule conversions are in scope
  • Confirm where the Typesense cluster will run, including the three- or five-node layout and RAM sizing for your data

How we build

  • Export records with the Algolia CLI as JSONL and map objectID to the Typesense id field
  • Define a typed collection schema and load documents with action=upsert, retrying writes that return HTTP 503
  • Convert Algolia query rules to Typesense overrides and connect existing InstantSearch front ends through the adapter

How we hand over

  • Test search relevance and typo tolerance against agreed queries before any cutover decision
  • Document the schema, import jobs, cluster topology, backup steps and the features Typesense does not replace
  • Walk your engineers through operating the cluster and rerunning imports from the written runbook

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover
  • Plan Typesense version upgrades and retest search behavior before each rollout in your environment
  • Confirm with your team which Algolia features, such as A/B testing and personalization, need a separate plan

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.