A record is an item or object added to an index so that it's searchable. It can contain any number of attributes.
Here's an example record, formatted as JSON:
{
"name": "iPhone 6 64Gb",
"brand": "Apple",
"color": "Gold",
"categories": ["smartphone", "phone", "electronics"],
"price": 789
}How records are counted
Your record count is the sum of the records in all of your indices, including replicas.
For billing, that total is measured daily and Algolia discards the three days in the month on which you held the most records — which gives you room to reindex without paying for the temporary duplication. For the full detail see How Algolia counts search requests, operations, and records.
Quotas and overage
Every Algolia plan differs in how many records it includes and what happens when you exceed that allowance:
- Free plans - your application is blocked once you're over the included quota.
- Paid plans - you're charged for usage above your included allowance.
You can add, update, and delete as many records as you like; only the total number indexed counts against the quota.
If your record count is higher than you expect
- Replicas copy their primary index's records, so each standard replica adds its full record count to your total.
-
Inconsistent
objectIDs when indexing create new records instead of overwriting existing ones — see Does saveObjects count against my usage?
Both, and several other causes, are covered in Why do I see a spike in my records usage?