Releases: pdphilip/elasticlens
v3.0.3
v3.0.2
What's Changed
- Bug fix: Stub template update
- Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot in #3
Full Changelog: v3.0.1...v3.0.2
v3.0.1
This release is compatible with Laravel 10, 11 & 12
What's changed
New features
- Skippable models via optional
excludeIndex(): bool
method in your base model - Delete an index from your model instance:
$user->removeIndex()
- New Index Model method:
IndexedUser::whereIndexBuilds()->get()
- returns index build logs for model - New Index Model method:
IndexedUser::whereFailedIndexBuilds()->get()
- returns failed index build logs for model - New Index Model method:
IndexedUser::whereMigrations()->get()
- returns migration logs for model - New Index Model method:
IndexedUser::whereMigrationErrors()->get()
- returns failed migrations for model - New index Model method:
IndexedUser::lensHealth()
- returns an array of the index health
Fixes
- v5 compatibility fixes with bulk insert and saving without refresh
- Indexable trait
search()
runssearchPhrasePrefix()
under the hood paginateBase()
honors current path
Full Changelog: v3.0.0...v3.0.1
v3.0.0
This is an updated dependency release compatible with:
- Laravel 10/11/12
laravel-elasticsearch
package v5
What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in #1
- Bump aglipanci/laravel-pint-action from 2.4 to 2.5 by @dependabot in #2
New Contributors
- @dependabot made their first contribution in #1
Full Changelog: v2.0.1...v3.0.0
v2.0.1
Bug fix: lens:make
command fixed to properly accommodate Domain spaced setups
Full Changelog: v2.0.0...v2.0.1
v2.0.0
Version 2 introduces breaking changes to support multiple model namespace mappings, providing flexibility for domain-driven architecture. This update allows the use of multiple model sources.
The elasticlens.php config file now requires the following structure:
'namespaces' => [
'App\Models' => 'App\Models\Indexes',
],
'index_paths' => [
'app/Models/Indexes/' => 'App\Models\Indexes',
],
• The namespaces key maps models to their respective index namespaces.
• The index_paths key maps file paths to the corresponding index namespaces.
Full Changelog: v1.3.1...v2.0.0
v1.3.1
- Bug fix: Bulk insert was not writing to the
IndexableBuild
model correctly - Better IDE support for IndexModel macros, ie:
getBase()
,asBase()
&paginateBase()
Full Changelog: v1.3.0...v1.3.1
v1.3.0
Changes
- Renamed
asModel()
toasBase()
- Renamed
paginateModels()
topaginateBase()
- Added convenience method
getBase()
that can replace....->get()->asBase()
Dependency update to use laravel-elasticsearch ^v4.4
Full Changelog: v1.2.2...v1.3.0
v1.2.0
Dependency update to use laravel-elasticsearch v4.2
Full Changelog: v1.1.0...v1.2.0
v1.1.0
New Feature
Bulk index (re)builder with:
php artisan lens:build {model}
Changes
The previous lens:build
command is now lens:migrate
, which better describes the feature.
php artisan lens:migrate {model}
See changelog for other minor updates:
Full Changelog: v1.1.0...v1.1.0