Sep 20, 2024
Retrieve a record
Retrieves one record by its object ID.
To retrieve more than one record, use the objects
operation.
Usage
Required ACL:
search
Copy
1
2
3
4
5
require "algolia"
client = Algolia::SearchClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
response = client.get_object("ALGOLIA_INDEX_NAME", "uniqueID", ["attr1", "attr2"])
Did you find this page helpful?