All Versions
44
Latest Version
Avg Release Cycle
103 days
Latest Release
-
Changelog History
Page 3
Changelog History
Page 3
-
v5.3.4 Changes
January 16, 2019 -
v5.3.0 Changes
Backward Compatibility Breaks
- β Removed
Query\NumericRange
, useQuery\Range
instead #1334
π Bugfixes
- Send the
scroll_id
inside a json body instead of plain text #1325
β Added
- Added getNumberOfReplicas() for index settings PR#1324
- Added getNumberOfShards() for index settings PR#1321
- Added
\Elastica\Query\Span*
for proximity searches #304 - Added avg_bucket() and sum_bucket() in aggregations PR#1443 - (https://github.com/ruflin/Elastica/issues/1279)
- β Removed
-
v5.2.1 Changes
π Bugfixes
- π Fix elastic 5.3.x deprecation warning related to Content-Type not being set.
- π Fix updating settings of an index. #1296
- Remove
Elastica\Search::OPTION_SEARCH_TYPE_DFS_QUERY_AND_FETCH
andElastica\Search::OPTION_SEARCH_TYPE_QUERY_AND_FETCH
as no longer supported as of 5.3.0 - π Fix bad parameter value to refresh document #1318
β Added
- Parameter
filter_path
for response filtering (e.g.$index->search($query, ['filter_path' => 'hits.hits._source'])
) - Add support for Health parameters for Cluster\Health endpoint (new prop : delayed_unassigned_shards, number_of_pending_tasks, number_of_in_flight_fetch, task_max_waiting_in_queue_millis, active_shards_percent_as_number)
- Add support for querystring in Type. this allow to use
update_all_types
in type mapping in order to resolve conflicts between fields in different types. Conflicts between fields in different types - Added
\Elastica\Query\ParentId
to avoid join with parent documents #1287 - Added
\Elastica\Reindex
for reindexing between indices #1311
π Improvements
- Added support for
other_bucket
andother_bucket_key
paramters onElastica\Aggregation\Filters
- Update elasticsearch testing dependency to 5.4.1
π Deprecated
- Deprecated
Tool\CrossIndex
use\Elastica\Reindex
instead #1311
-
v5.2.0 Changes
π Bugfixes
- π Fix reading bool index settings like
\Elastica\Index\Settings::getBlocksWrite
. Elasticsearch returns all settings as strings and does not normalize bool values. The getters now return the right bool value for whichever string representation is used like 'true', '1', 'on', 'yes'. #1251 - π Fix for QueryBuilder version check
\Elastica\QueryBuilder\Version\Version240.php
added all new query types to queries array. #1266 #1269 - Do not modify the original query in
\Elastica\Search::count
. #1276
β Added
- β Added
\Elastica\Client::requestEndpoint
,\Elastica\Index::requestEndpoint
,\Elastica\Type::requestEndpoint
that allow make requests with official client Endpoint usage. #1275 - β Added
\Elastica\Aggregation\GeoBounds
that computes the bounding box containing all geo_point values for a field. #1271 - β Added
\Elastica\Query\MatchNone
the inverse of MatchAll. #1276
π Improvements
- β added support for the "explain" flag of AnalyzeAPI #1254
- β added support for the "request_cache" search option #1243
- skip sending "retry_on_conflict=0" default query param to improve compatibility with Amazon Elasticsearch #1047
- β‘οΈ optimized
\Elastica\Scroll
to avoid one request #1273 - β‘οΈ Update elasticsearch-php dependency to 5.2.0 #1245
- β‘οΈ Update elasticsearch testing dependency to 5.2.2 #1245
π Deprecated
- π Deprecated
\Elastica\Exception\ElasticsearchException
which is irrelevant since Elasticsearch now exposes the errors as a structured array instead of a single string. Use\Elastica\Exception\ResponseException::getResponse::getFullError
instead. - Deprecated both
prefix_len
&min_word_len
fields inElastica\Suggest\CandidateGenerator\DirectGenerator
as these now return errors when using the phrase suggester to querying terms. Useprefix_length
&min_word_length
instead #1282 Use\Elastica\Exception\ResponseException::getResponse::getFullError
instead. #1251
- π Fix reading bool index settings like
-
v5.1.0 Changes
Backward Compatibility Breaks
\Elastica\Script\AbstractScript
added the script language as constructor argument and sub-classes must implementgetScriptTypeArray
π Bugfixes
- β Removed features that do not exist in Elasticsearch 5.0 anymore:
ttl
andtimestamp
logic: setters and getters in documents and mapping\Elastica\Query\Missing
: negate\Elastica\Query\Exists
instead\Elastica\Query\TopChildren
\Elastica\Query\MatchPhrase
and\Elastica\Query\MatchPhrasePrefix
do not extend\Elastica\Query\Match
anymore because they do not share exactly the same options- β Removed the
routing
option in\Elastica\Index::create
because there is no routing param when creating an index. So that option was doing nothing so far but fails in Elasticearch 5.0 because the non-existing query param is validated. - π Fix
relation
property of\Elastica\Query\GeoShapeProvided
- π repoint
\Elastica\Type::exists
from the deprecated /{index}/{type} endpoint to /{index}/_mapping/{type}
β Added
- β added
\Elastica\Script\ScriptId
to reference stored scripts by ID - β added
\Elastica\Query\AbstractGeoShape::RELATION_WITHIN
- Date math in index names is now escaped in URI
- β Added a check for paths that already have date math escaped
π Improvements
- π
\Elastica\Query\HasParent
to useparent_type
instead oftype
. Fixes warning due to field being deprecated.
π Deprecated
- π Deprecated functionality that is also deprecated in Elasticsearch 5.0:
\Elastica\Client::optimizeAll
in favor of\Elastica\Client::forcemergeAll
\Elastica\Query\BoolQuery::setMinimumNumberShouldMatch
in favor of\Elastica\Query\BoolQuery::setMinimumShouldMatch
\Elastica\Query\GeoDistanceRange
: use distance aggregations or sorting instead\Elastica\Query\GeohashCell
\Elastica\Query\Indices
: search on the_index
field instead\Elastica\Query\Match::setFieldType
: use\Elastica\Query\MatchPhrase
and\Elastica\Query\MatchPhrasePrefix
instead
- π
\Elastica\Transport\Null
is deprecated because null is a reserved class name in PHP 7. Use\Elastica\Transport\NullTransport
instead.
-
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