Skip to content

Version 2.3.0 (Beta 1)

Pre-release
Pre-release
Compare
Choose a tag to compare
@Radiergummi Radiergummi released this 26 Mar 13:07
· 155 commits to master since this release
3009176

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