Releases: matchory/elasticsearch
Version 2.3.0
Change log
- Feature: Added support for suggestions (#26)
- Feature: Allow adding index aliases during creation by using
Index::alias()
- Fix: Creating an index with an alias would fail unless options are specified (#24)
- Fix: Log channel would be ignored (#5, #25)
- Fix: The library would not work with legacy Laravel releases due to missing functionality provided by newer Eloquent traits used in the model. (#8, #9)
- Docs: Greatly improved documentation on the
Index
class - Chore: Bumped dependencies
Backports
This release contains backports of all Eloquent traits used in the model. As this is quite the maintenance burden, the final 2.3.0 release will be the last feature release in the 2.x branch. After that, all work will occur in the new 3.x series, which won't include backports and defines a minimum Laravel version of 7.x, keeping in line with Laravel's release schedule (we won't support legacy Laravel versions).
Adding aliases to a new index
Previously it wasn't possible to create new indices with one or more aliases. You can do that now, thanks to the new alias()
helper method on the Index
instance:
resolve('es')->createIndex(
'my-index-2021-03-26',
fn(Index $index) => $index->alias('my-index')
);
Version 2.3.0 (Beta 3)
Change log
- Fix: The library would not work with legacy Laravel releases due to missing functionality provided by newer Eloquent traits used in the model. (#8, #9)
Backports
This release contains backports of all Eloquent traits used in the model. As this is quite the maintenance burden, the final 2.3.0 release will be the last feature release in the 2.x branch. After that, all work will occur in the new 3.x series, which won't include backports and defines a minimum Laravel version of 7.x, keeping in line with Laravel's release schedule (we won't support legacy Laravel versions).
Version 2.3.0 (Beta 2)
Version 2.3.0 (Beta 1)
Change log
- Feature: Allow adding index aliases during creation by using
Index::alias()
- Docs: Greatly improved documentation on the
Index
class - Chore: Bumped dependencies
Adding aliases to a new index
Previously it wasn't possible to create new indices with one or more aliases. You can do that now, thanks to the new alias()
helper method on the Index
instance:
resolve('es')->createIndex(
'my-index-2021-03-26',
fn(Index $index) => $index->alias('my-index')
);
Version 2.2.0
Change log
- Feature: Added
explain()
method to the query builder to explain the current query - Feature: Added clean injection of cache and logger using PSR factories
- Fix: The artisan commands would not be registered due to a badly formatted condition
- Fix: Lots of type improvements
- Fix: Abstract trait functions would throw an error due to type inconsistencies.
- Fix: Index handling would not use the connection properly.
- Fix: Bulk queries would not use the connection properly.
- Fix: Plucking fields and retrieving the results as an array would cause an error due to
toArray
not being checked on the collection items (#17) - Fix: Creating items using
Model::create
would not allow setting their ID (#11) - Fix: Renamed
_source.include
and_source.exclude
to_source.includes
and_source.excludes
(the old variants have since been deprecated by Elasticsearch) - Fix: Creating models with an existing ID would not be possible due to the ID being written to the request body (#10)
- Chore: Updated dependencies, added Dependabot
- Chore: Type improvements
- Chore: Improved code structure, added more tests
Version 2.2.0 (Beta 4)
Version 2.2.0 (Beta 3)
Change log
- Fix: Renamed
_source.include
and_source.exclude
to_source.includes
and_source.excludes
(the old variants have since been deprecated by Elasticsearch) - Fix: Creating models with an existing ID would not be possible due to the ID being written to the request body (#10)
Version 2.2.0 (Beta 2)
Change log
- Fix: Abstract trait functions would throw an error due to type inconsistencies.
- Fix: Index handling would not use the connection properly.
- Fix: Bulk queries would not use the connection properly.
- Chore: Type improvements
Version 2.2.0 (Beta 1)
Change log
- Feature: Added
explain()
method to the query builder to explain the current query - Feature: Added clean injection of cache and logger using PSR factories
- Fix: The artisan commands would not be registered due to a badly formatted condition
- Fix: Lots of type improvements
- Chore: Improved code structure, added more tests
Version 2.1.0
Change log
- Feature: Added most Eloquent model functionality to models
- Feature: Implemented Query Scopes
- Feature: Clean connection management
- Feature: Upgraded to Elasticsearch 7.11, which adds support for PHP 8
- Fix: Lots of type improvements, added documentation and more