This error can occur during indexing when the indexed data fails to encode to JSON.
JSON parsing error: syntax error
This could be due to incorrect syntax like unescaped values in your attributes.
Errors from suggestions index#
suggestions index often triggers this error. In the extension, the suggestions index pulls data from Magento’s Search Terms collection. Search Terms is a collection of all submitted queries made by the search form. The extension indexes the
query_text value as is, which can sometimes throw errors if Search Terms contain malignant queries generated by bad actors like robots. Lax conditions allow indexing of irrelevant queries.
You can enforce higher conditions to reduce the less relevant Search Terms by increasing the numeric values in Stores > Configuration > Algolia Search > Autocomplete.
The extension indexes search terms based on these configurations:
To return more relevant results, increase these configuration values or clean up your Search Terms by manually deleting problematic
query_texts values from the collection.