algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
393 stars 85 forks source link

Respect standard Scout Algolia config #326

Open samlev opened 9 months ago

samlev commented 9 months ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Need Doc update no

Describe your change

This change ensures that standard Laravel Scout configuration for Algolia is respected when using Scout Extended.

What problem is this fixing?

Base Laravel Scout allows you to control certain features of the search client through configuration, but Scout extended ignores those configuratiton options.

This change makes scout extended respect the connect_timeout, read_timeout, write_timeout, and batch_size configuration options.

I will note that base scout also doesn't currently pay attention to batch_size, but that's the one setting that we wanted to change in the first place. I have opened a PR to scout to address this issue there, too.