AptlyStar

Algolia

Search and manage Algolia indices

Instructions d'utilisation

Integrate Algolia into your workflow. Search indices, manage records (add, update, delete, browse), configure index settings, and perform batch operations.

Outils

Search an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia API Key
indexNamestringOuiName of the Algolia index to search
querystringOuiSearch query text
hitsPerPagenumberNonNumber of hits per page (default: 20)
pagenumberNonPage number to retrieve (default: 0)
filtersstringNonFilter string (e.g., "category:electronics AND price < 100")
attributesToRetrievestringNonComma-separated list of attributes to retrieve

Sortie

ParamètreTypeDescription
hitsarrayArray of matching records
↳ objectIDstringUnique identifier of the record
↳ _highlightResultobjectHighlighted attributes matching the query. Each attribute has value, matchLevel (none, partial, full), and matchedWords
↳ _snippetResultobjectSnippeted attributes matching the query. Each attribute has value and matchLevel
↳ _rankingInfoobjectRanking information for the hit. Only present when getRankingInfo is enabled
↳ nbTyposnumberNumber of typos in the query match
↳ firstMatchedWordnumberPosition of the first matched word
↳ geoDistancenumberDistance in meters for geo-search results
↳ nbExactWordsnumberNumber of exactly matched words
↳ userScorenumberCustom ranking score
↳ wordsnumberNumber of matched words
nbHitsnumberTotal number of matching hits
pagenumberCurrent page number (zero-based)
nbPagesnumberTotal number of pages available
hitsPerPagenumberNumber of hits per page (1-1000, default 20)
processingTimeMSnumberServer-side processing time in milliseconds
querystringThe search query that was executed
parsedQuerystringThe query string after normalization and stop word removal
facetsobjectFacet counts keyed by facet name, each containing value-count pairs
facets_statsobjectStatistics (min, max, avg, sum) for numeric facets
exhaustiveobjectExhaustiveness flags for facetsCount, facetValues, nbHits, rulesMatch, and typo

algolia_add_record

Add or replace a record in an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key
indexNamestringOuiName of the Algolia index
objectIDstringNonObject ID for the record (auto-generated if not provided)
recordjsonOuiJSON object representing the record to add

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the indexing operation
objectIDstringThe object ID of the added or replaced record
createdAtstringTimestamp when the record was created (only present when objectID is auto-generated)
updatedAtstringTimestamp when the record was updated (only present when replacing an existing record)

algolia_get_record

Get a record by objectID from an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia API Key
indexNamestringOuiName of the Algolia index
objectIDstringOuiThe objectID of the record to retrieve
attributesToRetrievestringNonComma-separated list of attributes to retrieve

Sortie

ParamètreTypeDescription
objectIDstringThe objectID of the retrieved record
recordobjectThe record data (all attributes)

algolia_get_records

Retrieve multiple records by objectID from one or more Algolia indices

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia API Key
indexNamestringOuiDefault index name for all requests
requestsjsonOuiArray of objects specifying records to retrieve. Each must have "objectID" and optionally "indexName" and "attributesToRetrieve".

Sortie

ParamètreTypeDescription
resultsarrayArray of retrieved records (null entries for records not found)
↳ objectIDstringUnique identifier of the record

algolia_partial_update_record

Partially update a record in an Algolia index without replacing it entirely

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key
indexNamestringOuiName of the Algolia index
objectIDstringOuiThe objectID of the record to update
attributesjsonOuiJSON object with attributes to update. Supports built-in operations like {"stock": {"_operation": "Decrement", "value": 1}}
createIfNotExistsbooleanNonWhether to create the record if it does not exist (default: true)

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the update operation
objectIDstringThe objectID of the updated record
updatedAtstringTimestamp when the record was updated

algolia_delete_record

Delete a record by objectID from an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key
indexNamestringOuiName of the Algolia index
objectIDstringOuiThe objectID of the record to delete

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the deletion
deletedAtstringTimestamp when the record was deleted

algolia_browse_records

Browse and iterate over all records in an Algolia index using cursor pagination

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia API Key (must have browse ACL)
indexNamestringOuiName of the Algolia index to browse
querystringNonSearch query to filter browsed records
filtersstringNonFilter string to narrow down results
attributesToRetrievestringNonComma-separated list of attributes to retrieve
hitsPerPagenumberNonNumber of hits per page (default: 1000, max: 1000)
cursorstringNonCursor from a previous browse response for pagination

Sortie

ParamètreTypeDescription
hitsarrayArray of records from the index (up to 1000 per request)
↳ objectIDstringUnique identifier of the record
cursorstringOpaque cursor string for retrieving the next page of results. Absent when no more results exist.
nbHitsnumberTotal number of records matching the browse criteria
pagenumberCurrent page number (zero-based)
nbPagesnumberTotal number of pages available
hitsPerPagenumberNumber of hits per page (1-1000, default 1000 for browse)
processingTimeMSnumberServer-side processing time in milliseconds

algolia_batch_operations

Perform batch add, update, partial update, or delete operations on records in an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key
indexNamestringOuiName of the Algolia index
requestsjsonOuiArray of batch operations. Each item has "action" (addObject, updateObject, partialUpdateObject, partialUpdateObjectNoCreate, deleteObject) and "body" (the record data, must include objectID for update/delete)

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the batch operation
objectIDsarrayArray of object IDs affected by the batch operation

algolia_list_indices

List all indices in an Algolia application

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia API Key
pagenumberNonPage number for paginating indices (default: not paginated)
hitsPerPagenumberNonNumber of indices per page (default: 100)

Sortie

ParamètreTypeDescription
indicesarrayList of indices in the application
↳ namestringName of the index
↳ entriesnumberNumber of records in the index
↳ dataSizenumberSize of the index data in bytes
↳ fileSizenumberSize of the index files in bytes
↳ lastBuildTimeSnumberLast build duration in seconds
↳ numberOfPendingTasksnumberNumber of pending indexing tasks
↳ pendingTaskbooleanWhether the index has pending tasks
↳ createdAtstringTimestamp when the index was created
↳ updatedAtstringTimestamp when the index was last updated
↳ primarystringName of the primary index (if this is a replica)
↳ replicasarrayList of replica index names
↳ virtualbooleanWhether the index is a virtual replica
nbPagesnumberTotal number of pages of indices

algolia_get_settings

Retrieve the settings of an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia API Key
indexNamestringOuiName of the Algolia index

Sortie

ParamètreTypeDescription
searchableAttributesarrayList of searchable attributes
attributesForFacetingarrayAttributes used for faceting
rankingarrayRanking criteria
customRankingarrayCustom ranking criteria
replicasarrayList of replica index names
hitsPerPagenumberDefault number of hits per page
maxValuesPerFacetnumberMaximum number of facet values returned
highlightPreTagstringHTML tag inserted before highlighted parts
highlightPostTagstringHTML tag inserted after highlighted parts
paginationLimitedTonumberMaximum number of hits accessible via pagination

algolia_update_settings

Update the settings of an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key (must have editSettings ACL)
indexNamestringOuiName of the Algolia index
settingsjsonOuiJSON object with settings to update (e.g., {"searchableAttributes": ["name", "description"], "customRanking": ["desc(popularity)"]})
forwardToReplicasbooleanNonWhether to apply changes to replica indices (default: false)

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the settings update
updatedAtstringTimestamp when the settings were updated

algolia_delete_index

Delete an entire Algolia index and all its records

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key (must have deleteIndex ACL)
indexNamestringOuiName of the Algolia index to delete

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the index deletion
deletedAtstringTimestamp when the index was deleted

algolia_copy_move_index

Copy or move an Algolia index to a new destination

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key
indexNamestringOuiName of the source index
operationstringOuiOperation to perform: "copy" or "move"
destinationstringOuiName of the destination index
scopejsonNonArray of scopes to copy (only for "copy" operation): ["settings", "synonyms", "rules"]. Omit to copy everything including records.

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the copy/move operation
updatedAtstringTimestamp when the operation was performed

algolia_clear_records

Clear all records from an Algolia index while keeping settings, synonyms, and rules

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key (must have deleteIndex ACL)
indexNamestringOuiName of the Algolia index to clear

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the clear operation
updatedAtstringTimestamp when the records were cleared

algolia_delete_by_filter

Delete all records matching a filter from an Algolia index

Entrée

ParamètreTypeObligatoireDescription
applicationIdstringOuiAlgolia Application ID
apiKeystringOuiAlgolia Admin API Key (must have deleteIndex ACL)
indexNamestringOuiName of the Algolia index
filtersstringNonFilter expression to match records for deletion (e.g., "category:outdated")
facetFiltersjsonNonArray of facet filters (e.g., ["brand:Acme"])
numericFiltersjsonNonArray of numeric filters (e.g., ["price > 100"])
tagFiltersjsonNonArray of tag filters using the _tags attribute (e.g., ["published"])
aroundLatLngstringNonCoordinates for geo-search filter (e.g., "40.71,-74.01")
aroundRadiusnumberNonMaximum radius in meters for geo-search, or "all" for unlimited
insideBoundingBoxjsonNonBounding box coordinates as [[lat1, lng1, lat2, lng2]] for geo-search filter
insidePolygonjsonNonPolygon coordinates as [[lat1, lng1, lat2, lng2, lat3, lng3, ...]] for geo-search filter

Sortie

ParamètreTypeDescription
taskIDnumberAlgolia task ID for tracking the delete-by-filter operation
updatedAtstringTimestamp when the operation was performed

On this page