All Versions
39
Latest Version
Avg Release Cycle
103 days
Latest Release
-
Changelog History
Page 3
Changelog History
Page 3
-
v5.0.0 Changes
π Backward Compatibility Fixes
- β‘οΈ Updated Elastica\Test\Suggest\CompletionTest now payload and output are removed
- Updated Elastica\Test\TypeTest::testGetDocumentWithFieldsSelection The stored_fields parameter will only return stored fieldsβββit will no longer extract values from the _source
- β remove _shutdown for Node and Cluster as deprecated
π Bugfixes
- β± Query options such as "timeout" or "terminate_after" should not be ignored when using Multi\Search
β Added
- β Added regex option form suggest completions https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#regex
π Improvements
- π»
\Elastica\JSON
throws exception with readable message instead of errno - π
\Elastica\JSON::stringify
throws\Elastica\Exception\JSONParseException
on error
-
v5.0.0-beta1 Changes
Backward Compatibility Breaks
- β‘οΈ Update elasticsearch dependency to 5.0
- Replace flush refresh param with a options array
- π Rename Mapping::setFields to Mapping::setStoredFields
- β Removing all deprecated filters including tests. Use queries instead.
- Remove deprecated Elastica\Script*.php classes. Use Elastica\Script* instead.
- β Remove Elastica/Query/Image.php and test/Elastica/Query/ImageTest.php, no more support for image-plugin.
- β Remove Elastica/Query/Filtered.php and test/Elastica/Query/FilteredTest.php and all uses from code.
- β Remove index.merge.policy.merge_factor, and set/get MergePolicy as it looks deprecated from ES 1.6
- β Add new "Percolate query" functionality and tests
- β Remove in Elastica\AbstractUpdateAction Option "percolate", getter and setter as deprecated as of ES 1.3. Use Percolator instead.
- π Remove in Elastica\Aggregation\DateHistogram Option "pre_zone" is deprecated as of ES 1.5. Use "time_zone" instead
- π Remove in Elastica\Aggregation\DateHistogram Option "post_zone" is deprecated as of ES 1.5. Use "time_zone" instead.
- Remove in Elastica\Aggregation\DateHistogram Option "pre_zone_adjust_large_interval" is deprecated as of ES 1.5. Use "time_zone" instead.
- β Remove in Elastica\Aggregation\DateHistogram Option "pre_offset" is deprecated as of ES 1.5. Use "offset" instead.
- β Remove in Elastica\Aggregation\DateHistogram Option "post_offset" is deprecated as of ES 1.5. Use "offset" instead.
- β Remove Elastica\Document::add as deprecated. Use Elastica\Document::set instead
- β Remove Elastica\Document::setScript() is no longer available as of 0.90.2. See http://elastica.io/migration/0.90.2/upsert.html to migrate.
- β Remove Elastica\Document::getScript() is no longer available as of 0.90.2. See http://elastica.io/migration/0.90.2/upsert.html to migrate.
- β Remove Elastica\Document::hasScript() is no longer available as of 0.90.2. See http://elastica.io/migration/0.90.2/upsert.html to migrate.
- β Remove Elastica/Query::setLimit as deprecated. Use the Elastica/Query::setSize() method
- β Remove Elastica\Query\Builder
- β Remove Elastica\Query\Fuzzy::addField as deprecated. Use Elastica\Query\Fuzzy::setField and Elastica\Query\FuzzysetFieldOption instead.
- β Remove Elastica\Query::setIds as deprecated. Use Elastica\Query::like instead.
- β Remove Elastica\Query::setLikeText as deprecated. Use Elastica\Query::like instead.
- Remove Elastica\Query Option "percent_terms_to_match" is deprecated as of ES 1.5. Use "minimum_should_match" instead.
- β Remove Elastica\QueryBuilder\DSL\Query "More Like This Field" query is deprecated as of ES 1.4. Use MoreLikeThis query instead.
- π Changed visibility from protected to private Elastica\ResultSet::$_position as accessing this property in an extended class is deprecated.
- π Changed visibility from protected to private Elastica\ResultSet::$_response as accessing this property in an extended class is deprecated.
- π Changed visibility from protected to private Elastica\ResultSet::$_query as accessing this property in an extended class is deprecated.
- π Changed visibility from protected to private Elastica\ResultSet::$_results as accessing this property in an extended class is deprecated.
- β Removed Elastica\ResultSet::$_timedOut as deprecated. Use ResultSet->hasTimedOut() instead.
- β Removed Elastica\ResultSet::$_took as deprecated. Use ResultSet->hasTimedOut() instead.
- β Removed Elastica\ResultSet::$_totalHits as deprecated. Use ResultSet->hasTimedOut() instead.
- β Removed Elastica\Type::delete() It is no longer possible to delete the mapping for a type. Instead you should delete the index and recreate it with the new mappings.
- β Removed Elastica\Query\Builder as deprecated. Use new Elastica\QueryBuilder instead.
- β Removed Elastica\Percolator as deprecated. Use new Elastica\Query\Percolate instead.
- π Changed Elastica\Index::deleteByQuery() to use new API https://www.elastic.co/guide/en/elasticsearch/reference/5.0/docs-delete-by-query.html
- β Remove Elastica\ScanAndScroll and test, Scan search type is removed from ElasticSearch 5.0.
- β Remove support for PHP 5.4 and 5.5. Require at least PHP 5.6 #1202
- β Remove groovy as default scripting language
- β Remove search_type=count as it is removed in Elasticsearch 5.0
- π Remove fielddata_fields as it has been deprecated in ES5, use parameter docvalue_fields instead
β Added
- Elastica\QueryBuilder\DSL\Query::exists
- Elastica\QueryBuilder\DSL\Query::type
π Improvements
- β Add a constant for the expression language.
Health::getIndices
returns key=>value result, where key === $indexName.$cluster->getHealth()->getIndices()[$indexName] // or $indices = $cluster->getHealth()->getIndices(); $indices[$indexName]
- β Added a
Query::setTrackScores
method - β Implemented painless as default scripting language in tests
- β‘οΈ Updated Dockerfile and elasticsearch.yml to allow inline.script: true
- β‘οΈ Updated some Script function to use groovy as now default scripting is painless
- Elastica\Test\Aggregation\ScriptTest::testAggregationScript
- Elastica\Test\Aggregation\ScriptTest::testAggregationScriptAsString
- Elastica\Test\Query\FunctionScoreTest::testScriptScore
- Elastica\Test\BulkTest::testUpdate
- Elastica\Test\ClientTest::testUpdateDocumentByScript
- Elastica\Test\ClientTest::testUpdateDocumentByScriptWithUpsert
- Elastica\Test\ClientTest::testUpdateDocumentPopulateFields
- Elastica\Test\ClientTest::testUpdateDocumentPopulateFields
- Elastica\Test\TypeTest::testUpdateDocument
- Elastica\Test\TypeTest::testUpdateDocumentWithIdForwardSlashes
- Elastica\Test\TypeTest::testUpdateDocumentWithParameter
- Elastica\Test\TypeTest::testUpdateDocumentWithFieldsSource
- β Composer installations will no longer include tests and other development files.
-
v3.2.4 Changes
March 05, 2019- β In PHP 7.2 count() now raises a warning when an invalid parameter is passed. Only arrays and objects implementing the Countable interface should be passed. #1378
2018-12-19 - β Added codecov configuration
- β In PHP 7.2 count() now raises a warning when an invalid parameter is passed. Only arrays and objects implementing the Countable interface should be passed. #1378
-
v3.2.3 Changes
π Bugfixes
- π Query builder is now compatible with Elasticsearch 2.X
β Added
- Elastica\Aggregation\BucketScript
- Elastica\Aggregation\SerialDiff
- Elastica\Query\InnerHits
π Improvements
- Elastica\Client constructor now accepts a transport of fully qualified name. #1169
- β‘οΈ Update Elasticsearch dependency to 2.4.0
-
v3.2.2 Changes
π Backward Compatibility Fixes
π Bugfixes
- Set HTTP headers on each request preventing server error if persistent connection is enabled and compression enabled and later disabled for the same connection.
- β Removed
int
type hinting insetMinimumMatch
(Terms
Query): it should also allowstring
. #1151
β Added
- Elastica\QueryBuilder\DSL\Query::geo_distance
- Elastica\Aggregation\GeoCentroid #1150
- Multi value field param for decay function.
- Elastica\Client::getVersion #1152
- β Added support for terminate_after parameter in search queries #1168
π Improvements
- 0οΈβ£ Set PHP 7.0 as default development version
- Get the root reason from Elasticsearch's error JSON, when available #1111
- β‘οΈ Optimize memory usage for Http Adapter #1161
π Changed
- β Remove JSON_ELASTICSEARCH constant as not needed anymore
-
v3.2.1 Changes
π Backward Compatibility Fixes
- π Reintroduced properties in ResultSet removed in 3.2.0 as deprecated properties to be removed in 4.0
π Bugfixes
- π Fix fatal error on
Query::addScriptField()
if scripts were already set viasetScriptFields()
#1086 - π Fix namespace collision of
Type
inQuery\Ids
#1104
β Added
- β Added the concept of ResultSet Transformers. The Transformer adds more information to a Result, for example the original object or data that created the Result. #1066
- Tidied property initialisation in classes where it was duplicated
-
v3.2.0 Changes
Backward Compatibility Breaks
- π Method \Elastica\ResultSet::create and property \Elastica\ResultSet::$class were removed. To change the ResultSet class, implement your own ResultSet Builder. #1065
- Properties on \Elastica\ResultSet _totalHits, _maxScore, _took and _timedOut that were originally set on object construction are now accessed by the getters on the ResultSet. #1065
π Bugfixes
- π Fix php notice on
\Elastica\Index::getAliases()
if index has no aliases #1078
β Added
- β‘οΈ Update elasticsearch build dependency to elasticsearch 2.3.2 #1084
π Improvements
Elastica\Type->deleteByQuery($query, $options)
$query param can be a queryarray
again https://github.com/ruflin/Elastica/issues/1072 #1073Elastica\Client->connect()
allows to establish a connection to ES server when the config was set using methodElastica\Client->setConfigValue()
https://github.com/ruflin/Elastica/issues/1076 #1077- π² Elastica\Client constructor now accepts a LoggerInterface and will log both successful and failed requests. #1069
π Deprecated
- π§ Configuring the logger in \Elastica\Client $config constructor is deprecated and will be removed. Use the $logger argument instead. #1069
- π Extracted creation of ResultSet objects to a new dedicated ResultSet\Builder implementation. #1065
- π All properties in the \Elastica\ResultSet class will be moved to private in 4.0. To manipulate the creation of a ResultSet, implement the \Elastica\ResultSet\BuilderInterface and pass your new Builder to the \Elastica\Search instances. #1065
-
v3.1.1 Changes
β Added
- β Add an "AwsAuthV4" transport that automatically signs requests using credentials from the environment or from the client config. This allows using Elastica with Amazon ElasticSearch Service domains that are restricted to IAM roles or policies. #1056
- β‘οΈ Update elasticsearch build dependency to elasticsearch 2.2.1
π Improvements
- π»
Elastica\Exception\InvalidException
will be thrown if you try using anElastica\Aggregation\AbstractSimpleAggregation
without setting either thefield
orscript
param. Elastica\Index->deleteByQuery($query, $options)
$query param can be a queryarray
again- π
Elastica\Query\MoreLikeThis->toArray()
now supports providing a non-indexed document as an input to perform the comparison. Elastica\Status
will lazy load the_stats
at when it is needed. https://github.com/ruflin/Elastica/pull/1058
-
v3.1.0 Changes
Backward Compatibility Breaks
- β‘οΈ Update Guzzle transport to use Guzzle 6
- π Elastica\Query\FunctionScore::setFilter - deprecated and will throw DeprecatedException since not supported by Elasticsearch. Use setQuery instead.
β Added
Elastica\Result->getDocument
andElastica\ResultSet->getDocuments
for return\Elastica\Document
. https://github.com/ruflin/Elastica/issues/960
π Improvements
- β Add username and password params to connection
π Deprecated
- π Elastica\AbstractScript|Script|ScriptFile|ScriptFields deprecated in favor of Elastica\Script|AbstractScript|Script|ScriptFile|ScriptFields #1028
- π Elastica\Filter* are deprecated. You can use proper queries instead. Backward compatibility layer provided, but will be removed in next Elastica releases. See https://www.elastic.co/blog/better-query-execution-coming-elasticsearch-2-0 and https://github.com/ruflin/Elastica/issues/1001
-
v3.0.1 Changes
π Improvements
- β‘οΈ Update build dependency to elasticsearch 2.1.1 #1022
- π Readd \Elastica\Filter\Nested. See https://github.com/ruflin/Elastica/issues/1001 #1020