ENATIV Logo
ENATIV
Back
© 2026 ENATIV
ProjectsServicesKnowledge hubContact
contact@enativ.pl
  1. Knowledge hub
  2. ›
  3. Integrations
  4. ›
  5. Algolia

Algolia

Hosted search over an index of records: attributes, ranking and facets. When it fits and when the database is enough.

IntegrationsUsing since 2022 · Featured project: CAS Marketplace (in the Code & Pepper team)

Category
Integrations
Using since
2022
Featured project
CAS Marketplacein the Code & Pepper team

In practice

I pick Algolia when someone has to find a record in a catalogue or a dashboard by typing a few letters. It is in the stack of the Code & Pepper team projects Gaia Lens and CAS Marketplace. When a filter on a few fields is enough, I stay with the database.

What is Algolia?

Algolia is a hosted search platform with an API. Data goes in as JSON records in an index, and the index settings decide how records are matched and ranked. The application sends queries through the API or ready-made UI libraries. Algolia also offers vector and hybrid retrieval, but this entry covers the index and ranking side. Answers built from documents belong to the entry on RAG.

The index is a copy of the data prepared for searching, not its source. You send records from your own application with an API client or a connector. Every attribute is searchable by default, so I usually narrow that to the name and description and keep URLs out of the search. Typos are tolerated out of the box, and attributes declared as facets give categories with counts for filtering the results.

Kind
A hosted search platform
Data
JSON records in an index

How I work with Algolia

I start with what the user types and what they should get after the first letters, and only then touch the settings. The index is a copy, so first I settle where the records come from and who refreshes them.

  1. Records from one source

    One record is one thing the user should find: a product, a document, a client. I send them from the application and hook the refresh to the moment data changes, so the index does not go stale quietly. I rolled out Algolia search on Gaia Lens, in the Code & Pepper team.

  2. Attributes and ranking

    I choose which attributes are searched, usually the name and description, and keep display-only fields such as an image URL out. Ties I break with a business attribute such as popularity or date, because custom ranking decides only when the earlier criteria have not picked a winner.

  3. The interface and control queries

    I assemble the interface from ready InstantSearch widgets and style them with CSS. Before hand-over I write down queries that must return a given record and run them after every settings change.

When it fits, and when it doesn't

A hosted search fits where searching is the main thing the user does.

A good fit when

  • A catalogue of products or listings where users filter by category and see counts.
  • A dashboard with thousands of records where the result should show as you type.
  • A team that would rather tune ranking in a panel than run a search engine itself.

Not a fit when

  • A few hundred records that a filter in the database can handle.
  • Data that must not leave your own infrastructure.
  • Natural-language questions over long documents that need an answer, not a list.

When search should answer questions from documents instead of returning a list, I reach for RAG, and the scope of such work is described on the AI integration page.

Frequently asked questions

From your application. Records are sent by an API client or a connector, and I hook the sending to the moment data changes. The database or the CMS stays the source of truth, and the index is its copy for searching. A change made in the database behind the application never reaches the index, so I settle one write path up front.
Yes, Algolia gives typo tolerance out of the box and you can set how forgiving it is. By default it also matches the beginnings of words, so a result shows after a few letters. I test it on real queries, because matching that is too loose brings in results nobody was looking for.
First the default matching criteria, such as typos and how close the words are. When records tie, an attribute you choose decides, such as popularity or release date. I ask what a better result means for your business, because without that answer the ranking is guesswork.
Least on the data, since the source stays with you. The interface ties more: InstantSearch widgets and ranking settings are work you cannot move to another search engine in one click. I keep the query layer in a single module, so a change of vendor means rebuilding the search, not the whole app.

On this page

  • In practice
  • What is Algolia?
  • How I work with Algolia
  • When it fits, and when it doesn't
  • Frequently asked questions

Related topics

  • Algolia
  • Medusa.js
  • Multi-vendor marketplace
  • Next.js
  • RAG
  • PostgreSQL

Related services

  • Semantic Search & AI Q&ASearch that understands what users mean, with answers grounded in your own content, in a new app, an existing one or your CMS.

Should users find things in your data?

Write what should be searched, how many records there are and where they come from. I will answer whether a filter in the database is enough or a separate index is needed.

Describe your projectSee CAS Marketplace