Yes, you can use Algolia for back-end search, although the platform is optimized for front-end implementations.
Recommended: Front-end search
Algolia recommends using front-end search, where search queries are sent directly from the end user's browser or mobile app to Algolia. This approach offers the best performance and takes full advantage of Algolia’s distributed search network (DSN), reducing latency and infrastructure overhead.
When to use back-end search
There are valid reasons to perform search operations from your server, including:
Pre-processing or enriching user queries server-side
Centralizing all external requests through your infrastructure
Applying additional access control or business logic before sending a query
In these cases, back-end search is fully supported.
How to implement back-end search
You have two primary options:
Use one of Algolia’s back-end API clients (available for languages like Node.js, Python, Ruby, PHP, Java, etc.) to send queries directly from your server.
Use InstantSearch on the server, though this is less common and requires a more customized setup.