Skip to content

v2.0.0

Compare
Choose a tag to compare
@babenkoivan babenkoivan released this 05 Oct 16:50
· 64 commits to master since this release

Added

  • Routing object, which defines the shard routing
  • Raw methods: createRaw, putMappingRaw and putSettingsRaw
  • Aggregation and Bucket objects, which make it easier to get aggregated data from the response

Changed

  • Dropped support for PHP 7.2
  • The library is now coupled with Laravel
  • DocumentManager::delete() was optimized, it now requires only documet ids
  • Index was renamed to IndexBlueprint
  • SearchResponse now returns collections instead of arrays, e.g. SearchResponse::aggregations() returns a collection of Aggregation
  • All getters and setters were simplified, e.g. Document::getContent() was changed to Document::content()