github ruflin/Elastica 7.0.0-beta.4
Release 7.0.0-beta.4

latest releases: 8.0.0-alpha1, 7.3.2, 7.3.1...
pre-release4 years ago

Backward Compatibility Breaks

  • If you're NOT using composer to manage your libraries: the root directory of the library's source code moved from lib/Elastica/ to src/.
  • The Wildcard::setValue() changed its signature: use it to set the value of the wildcard query only.
  • The Wildcard Query's constructor now requires the name and value properties.
  • The Terms Query's constructor now requires the field and terms properties.

Added

  • Added AbstractTermsAggregation::setIncludeAsExactMatch() #1766
  • Added AbstractTermsAggregation::setExcludeAsExactMatch() #1766
  • Added AbstractTermsAggregation::setIncludeWithPartitions() #1766
  • Added Elastica\Reindex->setPipeline(Elastica\Pipeline $pipeline): void. The link between the reindex and the pipeline is solved when run() is called, and thus the pipeline given doesn't need to be created before calling setPipeline() #1752
  • Added Elastica\Reindex->setRefresh(string $value): void. It accepts REFRESH_* constants from its class #1752 and #1758
  • Added Elastica\Reindex->setQuery(Elastica\Query\AbstractQuery $query): void #1752
  • Added constants PIPELINE, REFRESH_TRUE, REFRESH_FALSE, REFRESH_WAIT_FOR, SLICES and SLICES_AUTO to Elastica\Reindex #1752
  • Added Elastica\Pipeline->getId(): ?string #1752
  • Added Elastica\Aggregation\ExtendedStatsBucket aggregation #1756

Changed

  • Changed Terms::setTerms() signature: it now accepts a list of strings only #1765
  • Changed Terms::setTermsLookup() signature: index, path and id are now required arguments #1765
  • Changed Wildcard::setValue() and constructor's signature: added more specific Wildcard::setBoost() and Wildcard::setRewrite methods
  • Updated PHP coding standards to adhere to PSR-12 #1760
  • Updated to PHPUnit v8.5 #1759
  • Refactored code structure: use src/ and tests/ folders #1755
  • Require elastica-php library >= v7.1.1, fixes an issue on Ingestion/Put() type-hinting
  • Require guzzle >= v6.3 as development library: fixes issues on PHP >= 7.2
  • Require phpunit >= v7.5, fixes deprecations in with PHP 7.3
  • Scroll is now throwing an exception when calling current() on an invalid iteration: always call valid() before
    accessing the current item, as documented in PHP's Iterator documentation #1749

Removed

  • Removed unsupported flags from AbstractTermsAggregation::setInclude() #1766
  • Removed unsupported flags from AbstractTermsAggregation::setExclude() #1766
  • Terms::setMinimumMatch() has been removed as not supported by ES 7.x

Don't miss a new Elastica release

NewReleases is sending notifications on new releases.