Skip to content

Releases: pdphilip/elasticlens

v3.0.3

11 Jun 10:45
Compare
Choose a tag to compare

What's Changed

  • paginateBase() bug. Fixed issue where subsequent paging returned data (items) as non-sequential arrays.

Full Changelog: v3.0.2...v3.0.3

v3.0.2

04 Jun 13:40
Compare
Choose a tag to compare

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

28 Mar 22:03
Compare
Choose a tag to compare

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() runs searchPhrasePrefix() under the hood
  • paginateBase() honors current path

Full Changelog: v3.0.0...v3.0.1

v3.0.0

28 Mar 09:45
Compare
Choose a tag to compare

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

Full Changelog: v2.0.1...v3.0.0

v2.0.1

04 Nov 11:29
Compare
Choose a tag to compare

Bug fix: lens:make command fixed to properly accommodate Domain spaced setups

Full Changelog: v2.0.0...v2.0.1

v2.0.0

21 Oct 23:30
Compare
Choose a tag to compare

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

03 Oct 10:31
Compare
Choose a tag to compare
  • 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

02 Oct 10:21
Compare
Choose a tag to compare

Changes

  • Renamed asModel() to asBase()
  • Renamed paginateModels() to paginateBase()
  • 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

16 Sep 15:42
Compare
Choose a tag to compare

Dependency update to use laravel-elasticsearch v4.2

Full Changelog: v1.1.0...v1.2.0

v1.1.0

09 Sep 17:12
Compare
Choose a tag to compare

New Feature

Bulk index (re)builder with:

php artisan lens:build {model}
ElasticLens Build

Changes

The previous lens:build command is now lens:migrate, which better describes the feature.

php artisan lens:migrate {model}
ElasticLens Migrate

See changelog for other minor updates:

Full Changelog: v1.1.0...v1.1.0