teamtnt/laravel-scout-tntsearch-driver
Adds support for the Scout query constraints whereIn() and whereNotIn(), which were previously stored on the builder but silently ignored by the engine.
City::search("san")->whereIn("country", ["United States", "Brazil"])->get();
City::search("san")->whereNotIn("country", ["United States"])->get();
getBuilder() now applies $whereIns / $whereNotIns to the underlying query. The properties are guarded so Scout versions that predate these methods continue to work unchanged. Tests added for both constraints, including the missing-property (older Scout) case.
Full Changelog: https://github.com/teamtnt/laravel-scout-tntsearch-driver/compare/v16.1.1...v16.2.0
Fixes where() constraints and soft-delete filtering on Laravel Scout 11.
Scout 11 changed Builder->wheres from an associative [field => value] array to a list of [field => ..., operator => ..., value => ...] arrays. The ^11 composer constraint was added previously without updating the engine, so where() clauses and soft-delete handling broke on Scout 11.
applyWheres() and handleSoftDeletes() now detect the entry shape per clause and support both formats, so operators are honored on Scout 11 while Scout <=10 continues to work. Added tests covering both formats.
Full Changelog: https://github.com/teamtnt/laravel-scout-tntsearch-driver/compare/v16.1.0...v16.1.1
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.
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.
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 bootbootstrap/providers.php on Laravel 11+ (#378, #388 — thanks @ultrono), and document the new stopwords optionFull Changelog: https://github.com/teamtnt/laravel-scout-tntsearch-driver/compare/v16.0.0...v16.1.0
This release adds full Laravel 13 compatibility.
illuminate/* ^13 and laravel/scout ^11 in composer constraints (#382, #383) — on Laravel 13, Scout resolves to v11.3.0+, the first Scout release compatible with Laravel 13extend closure on Laravel 13 (#387) — Laravel 13's Manager::extend rebinds the closure's $this and scope to the manager, which routed the driver's internal helper calls through Manager::__call back into the same closurelaravel/scout ^11.3teamtnt/tntsearch ^5.0Full Changelog: https://github.com/teamtnt/laravel-scout-tntsearch-driver/compare/v15.0.0...v16.0.0
This release starts from 6.1 to match the laravel scout version
How can I help you explore Laravel packages today?