Record is too big
.
Instead of upgrading your plan,
make your records smaller before sending them to Algolia. Do this by:
- Only sending the necessary information by removing unused attributes
- Splitting long documents into smaller parts.
If you’re using the Algolia Crawler and the record size exceeds the limit, use the
helpers.splitContentIntoRecords()
helper to split the page into smaller chunks.Remove unused attributes
You might not need to index every attribute from your data sources. For example, if you’re developing a website to display tweets on specific topics, Twitter may send you a lot of data, but only some will help when searching. For example, an excerpt of the Twitter API response might look like this:JSON
- Only indexing attributes that help build your search experience
- Reusing an attribute for different purposes. For example,
retweeted=false
is the same asretweet_count=0
- Adding attributes that rely on others.
For example, if you want to use the
pictures
attribute to display a gallery (in thepictures_url
array), only include it when thepictures_urls
array isn’t empty.
After removing attributes
Choose only the information you need for searching, displaying, and ranking. Leave everything else out. For example, after transforming the previous Twitter data, your record might look like this:JSON