What's new
Stopwords support (#356)
You can now exclude common words (articles, prepositions, etc.) from being indexed via a new stopwords option in the tntsearch block of config/scout.php:
'tntsearch' => [
// ...
'stopwords' => ['a', 'the', 'in'],
],Applied on all indexing paths — scout:import, tntsearch:import and model saves. Stopwords take effect at indexing time, so reimport your models after changing them.
Read-replica friendly database access (#346)
The driver now uses getReadPdo() instead of getPdo() in the service provider, engine and import command. Since the driver only ever reads from your database (index writes go to the separate index file), running imports from an instance with a read-only database connection now works.
Fixes
- Require
teamtnt/tntsearch ^4.0|^5.0(#363) — the driver calls fuzziness setters that only exist since tntsearch 4.0, so older tntsearch versions produced a fatal on boot - README: document registering service providers in
bootstrap/providers.phpon Laravel 11+ (#378, #388 — thanks @ultrono), and document the newstopwordsoption
Full Changelog: v16.0.0...v16.1.0