v4.0.0
This release is compatible with Laravel 10, 11 & 12
The engine has been rewritten from the ground up. The core indexing, observer, and build systems were gutted and rebuilt with cleaner internals, typed signatures, and proper error boundaries. The package now has a full test suite (unit + integration) running against a real Elasticsearch instance in CI - something that didn't exist before.
Full documentation now lives at elasticlens.pdphilip.com
What's New
viaIndex()->get()now returns base models directly - no moregetBase()needed- Conditional Indexing - control which records get indexed via
excludeIndex() - Soft Delete Support - configurable globally or per index model
- Full test suite with Elasticsearch service container in CI
Breaking Changes (NB)
viaIndex()->get()returns base model collection (was index model collection; use->get()directly instead of->getBase())getBase()andpaginateBase()still work but are no longer necessary for the default case- use
getIndex()andpaginateIndex()if you would like to return the index values directly
See the upgrade guide for migration details.
Full Changelog: v3.1.2...v4.0.0