Algolia search configuration of mx-space documentation is quite comprehensive, and other blog frameworks may have similar configurations. Unfortunately, after configuring according to the documentation, an error is reported in the log:
16:40:40 ERROR [AlgoliaSearch] algolia push error
16:40:40 ERROR [Event] Record at the position 10 objectID=xxxxxxxx is too big size=12097/10000 bytes. Please have a look at
https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/in-depth/index-and-records-size-and-usage-limitations/#record-size-limits
The cause of the error is also clear, some blog posts are too long, and the free Algolia has a limit of 10KB per data. How can we handle it while being a free user?
To handle this issue, we can take the following steps:
1. Divide the long text into smaller chunks, and modify the objectID to make it unique for each chunk.
2. Remove unnecessary parts of the text, such as