Are you using this package by chance https://github.com/algolia/algoliasearch-laravel?
In this section you should be able to set attributesToHighlight within the array the same way you would as per your Algolia docs link.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using Laravel 5.3 and Algolia,
I want to highlight the search result,I read the documentation but I still don't know how to do it.
https://www.algolia.com/doc/api-client/php/parameters#attributestohighlight
Any ideas?
Please or to participate in this conversation.