Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

laternastudio's avatar

Is it possible to use Algolia term highlighting with Scout

I'm using Larvel + Scout + Algolia for searches. A search looks something like this:

$results = Page::search( $query )->get();

The problem is that, since it just returns models, the Algolia highlighting is not preserved. Is there any way to still get/use the Algolia highlighting?

There was previously another question related to this, but it seemed to be more focused on setting the settings via Laravel, which I don't care about.

0 likes
0 replies

Please or to participate in this conversation.