API methods

Search index

Method used for querying an index.

Search for facet values

Search for a set of values within a given facet attribute. Can be combined with a query.

Search multiple indexes

Perform a search on several indexes at the same time, with one method call.

Browse index

Get all index content without any record limit. Can be used for backups.

Indexing

Add objects

Add new objects to an index.

Update objects

Replace an existing object with an updated set of attributes.

Partial update objects

Update one or more attributes of an existing object.

Delete objects

Remove objects from an index using their object ids.

Delete by

Remove all objects matching a filter (including geo filters).

Get objects

Get one or more objects using their object ids.

Custom batch

Perform several indexing operations in one API call.

Settings

Get settings

Get the settings of an index.

Set settings

Create or change an index’s settings.

Manage indices

List indexes

Get a list of indexes with their associated metadata.

Delete index

Delete an index and all its settings, including links to its replicas.

Copy index

Make a copy of an index, including its objects, settings, synonyms, and query rules.

Move index

Rename an index. Normally used to reindex your data atomically, without any down time.

Clear index

Clear the records of an index without affecting its settings.

API Keys

Create secured API Key

Generate a virtual API Key without any call to the server.

Add API Key

Add a new API Key with specific permissions/restrictions.

Update API Key

Update the permissions of an existing API Key.

Delete API Key

Delete an existing API Key.

Get API Key permissions

Get the permissions of an API Key.

List API Keys

Get the full list of API Keys.

Synonyms

Save synonym

Create or update a single synonym on an index.

Batch synonyms

Create or update multiple synonyms.

Delete synonym

Remove a single synonym from an index using its object id.

Clear all synonyms

Remove all synonyms from an index.

Get synonym

Get a single synonym using its object id.

Search synonyms

Get all synonyms that match a query.

Export Synonyms

Retrieve an index’s complete list of synonyms.

Query rules

Save rule

Create or update a single rule.

Batch rules

Create or update a specified set of rules, or all rules.

Get rule

Get the object/definition of a specific rule.

Delete rule

Delete a specific rule using its id.

Clear rules

Delete all rules in an index.

Search rules

Search for rules matching various criteria.

Export rules

Retrieve an index’s full list of rules using an iterator.

A/B Test

Add A/B test

Create an A/B test

Get A/B test

Get an A/B test information and results.

List A/B tests

List A/B tests information and results.

Stop A/B test

Stop an A/B test

Delete A/B test

Delete an A/B test

MultiClusters

Assign or Move userID

Assign or Move a userID to a cluster.

Get top userID

Get the top 10 userIDs with the highest number of records per cluster.

Get userID

Returns the userID data stored in the mapping.

List clusters

List the clusters available in a multi-clusters setup for a single appID.

List userIDs

List the userIDs assigned to a multi-clusters appID.

Remove userID

Remove a userID and its associated data from the multi-clusters.

Search userID

Search for userIDs.

Advanced

Get logs

Get the logs of the latest search and indexing operations.

Configuring timeouts

Override the pre-configured timeouts.

Set extra header

Sends an extra http header to Algolia, for all subsequent queries.

Wait for operations

Wait for a task to complete before executing the next line of code, to synchronize index updates.