Skip to content

Version 2.3.0

Compare
Choose a tag to compare
@Radiergummi Radiergummi released this 01 Apr 14:04
· 146 commits to master since this release
87fb4dd

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')
);