All Versions
44
Latest Version
Avg Release Cycle
103 days
Latest Release
-
Changelog History
Page 2
Changelog History
Page 2
-
v7.0.0-beta2 Changes
December 10, 2019Backward Compatibility Breaks
- The method
Index::deleteById()
does not throw anNotFoundException
when deleting a non-existing document #1732 - ๐ The class
\Elastica\QueryBuilder\Version\Version240
has been moved to\Elastica\QueryBuilder\Version\Version700
#1693 - โฌ๏ธ Dropped support for PHP 7.1 #1703
๐ Bugfixes
- Renamed
\Elastica\Suggest\Term
deprecated optionprefix_len
toprefix_length
#1707 - The
\Elastica\Query\GeoPolygon::count()
method now returns the count of points passed to the filter #1696 - ๐ Fix issue in
\Elastica\Client::request()
which causes request data to not be sent to the logger #1682
โ Added
- Added
geo_bounding_box
,geo_polygon
,match_phrase
,match_phrase_prefix
,match_none
to\Elastica\QueryBuilder\Version\Version700
#1702 - โ Added
\Elastica\ResultSet::getTotalHitsRelation()
to get relation for total hits #1694 - โ Added
Sampler
aggregation #1688
๐ Improvements
- The method
-
v7.0.0-beta1 Changes
October 31, 2019๐ This is our first release in the 7.x cycle. It is compatible with Elasticsearch 7.x. Please review the breaking changes carefully. Most of them are related to the type removal in Elasticsearch.
Backward Compatibility Breaks
- The
\Elastica\Query::$_suggest
property has been renamed to$hasSuggest
and is now private, it should not be used from extending classes #1679 \Elastica\Document
expects a string as ID, not an int #1672.- โ Removed
\Elastica\Query\GeohashCell
query, use\Elastica\Query\GeoBoundingBox
instead #1672. - ๐ Deprecated usage of
\Elastica\Type
class,\Elastica\Index
class must be used instead #1666 - โ Removed
\Elastica\Type
class,\Elastica\Index
class must be used instead #1666 - ๐ฎ Forced index names to string in
\Elastica\Index::__construct()
#1666 - โ Removed Type query
\Elastica\Query\Type
#1666 - โ Removed
Elastica\Type
class,Elastica\Index
class must be used instead #1666 - โ Removed
type
handling fromElastica\Search
class #1666 - โ Removed
type
handling fromElastica\Bulk
andElastica\Bulk\Action
classes #1666 - ๐ฎ Forced index names to string in
Elastica\Index::__construct()
#1666 - โ Removed Type query
Elastica\Query\Type
#1666 - โฌ๏ธ Dropped support for PHP 7.0
- โก๏ธ \Elastica\AbstractUpdateAction::getOptions( $fields ) no longer supports the $underscore parameter, option names must match what elasticsearch expects.
- โ Removed no longer supported \Elastica\Query\QueryString::setAutoGeneratePhraseQueries( $bool ) #1622
- Replaced params._agg with state context variable in scripted metric aggregations
- Camel Case and underscore parameters deprecated in 6.x have been removed
- The parameter fields deprecated in 6.x has been removed from Bulk requestedit and Update request.
- ๐ The _parent field has been removed in favour of the join field.
- hits.total is now an object in the search response hits.total
- Elastica\Reindex does not return an Index anymore but a Response.
- Elastica\Reindex->run() does not refresh the new Index after completion anymore. Use
$reindex->setParam(Reindex::REFRESH, 'wait_for')
instead. - 0๏ธโฃ
Elastica\Search->search()
andElastica\Search->count()
use request methodPOST
by default. Same forElastica\Index
,Elastica\Type\AbstractType
,Elastica\Type
. - Elastica\Client
$_config
field is now aClientConfiguration
instead of an array - โ Removed
\Elastica\Client::_log
,\Elastica\Log
and thelog
configuration option. Use thePsr\Log\LoggerInterface $logger
client argument to customize logging. - ๐ Changed all factory methods to make use of late static bindings by using
static
instead ofself
keyword. This is to increase extendability for classes with factory methods.
๐ Bugfixes
- ๐ Always set the Guzzle
base_uri
to support connecting to multiple ES hosts. #1618 - ๐ Properly handle underscore prefixes in options and bulk request metadata (cf upstream. #1621
- Preserve zeros while doing float serialization to JSON. #1635
- โ Add
settings
level on json to create an Index in all tests (it worked till 6.x but it shouldn't work)
โ Added
- ๐ support for elasticsearch-php 7.0
- โ Added
ParentAggregation
#1616 - Elastica\Reindex missing options (script, remote, wait_for_completion, scroll...)
- โ Added
AdjacencyMatrix
aggregation #1642 - โ Added request method parameter to
Elastica\SearchableInterface->search()
andElastica\SearchableInterface->count()
. Same forElastica\Search
#1441 - โ Added support for Field Collapsing (Issue: #1392; PR: #1653)
- ๐ Support string DSN in
\Elastica\Client
constructor for config argument #1640 - ๐ง Move Client configuration in a dedicated class
- โ Added
callable
type hinting to$callback
inClient
constructor. #1659 - โ Added
setTrackTotalHits
method toElastica\Query
#1663 - ๐ Allow metadata to be set on Aggregations (via
AbstractAggregation::setMeta(array)
). #1677
๐ Improvements
- The
-
v6.1.1 Changes
January 29, 2019โ Added
- The preferred type name is _doc, so that index APIs have the same path as they will have in 7.0
- โ Added
BucketSelector
aggregation #1554 - โ Added
DerivativeAggregation
#1553 - The preferred type name is _doc, so that index APIs have the same path as they will have in 7.0
- ๐ Introduced new version of PHP-CS-Fixer and new Lint travis step. #1555
- โ Added
typed_keys
support for Search queries #1603
๐ Improvements
- โฌ๏ธ Reduced memory footprint of response by not keeping the raw JSON data when JSON after JSON has been parsed. #1588
๐ Deprecated
- Index templates use index_patterns instead of template
-
v6.1.0 Changes
Backward Compatibility Breaks
- Made result sets adhere to
\Iterator
interface definition that they implement. Specifically, you need to callvalid()
on the result set before callingcurrent()
. When usingforeach
this is done by PHP automatically. Whenvalid
returns false, the return value ofcurrent
is undefined instead of false. #1506\Elastica\ResultSet::next
returnsvoid
instead of\Elastica\Result|false
\Elastica\Bulk\ResponseSet::current
returns\Elastica\Bulk\Response
instead of\Elastica\Bulk\Response|false
\Elastica\Multi\ResultSet::current
returns\Elastica\ResultSet
instead of\Elastica\ResultSet|false
โ Added
- โ Added a transport class for mocking a HTTP 403 error codes, useful for testing response failures in inheriting clients #1529
- Field param for
Elastica\Query\FunctionScore::addRandomScoreFunction
#1529 - Index Recovery : the indices recovery API provides insight into on-going index shard recoveries. It was never been implemented into Elastica. #1537
- โ add parent_id (reference #1518) in QueryBuilder. [#1533](#1518)
- implemented
string_distance
option in Term Suggestion #1543
๐ Improvements
- ๐ Using
Elastica\Query\FunctionScore::addRandomScoreFunction
without$field
parameter is deprecated since ES 6.0 and will fail since ES 7.0 #1522 - โก๏ธ
Aggreation\Percentiles
updated to a newer version of the Algorithm (T-Digest 3.2) and Percentiles results changed a bit Have a look at here, so updated tests in order not to fail. [#1531](#1352) - โก๏ธ
Aggregation\Percentiles
have been updated since Elasticsearch 2.3. In this versioncompression, HDR histogram
changed their implementations. Themissing
field has never been implemented. #1532
Before
"compression" : 200, "method" : "hdr", "number_of_significant_value_digits" : 3
Now
"tdigest": { "compression" : 200 }, "hdr": { "number_of_significant_value_digits" : 3 }
- Never implemented the method Missing on
Aggregation\Percentiles
#1532
- Made result sets adhere to
-
v6.0.2 Changes
-
v6.0.1 Changes
๐ Bugfixes
- Characters "<" and ">" will be removed when a query term is passed to
Util::escapeTerm
. Since v5.1 the documentation states that these symbols cannot be escaped ever. - โ Remove
each()
usage to fix PHP 7.2 compatibility - Fix #1435 forcing
doc_as_upsert
to be boolean, acording Elastic doc-update documentation - ๐ Fix #1456 set SSL as connection scheme if it is required
โ Added
- โ Added request parameters to
Client->deleteDocuments()
. #1419 - โ Added request parameters to
Type->updateDocuments()
,Type->addDocuments()
,Type->addObjects()
,Index->addDocuments()
,Index->updateDocuments()
. #1427 - Added avg_bucket() and sum_bucket() in aggregations PR#1443 - (https://github.com/ruflin/Elastica/issues/1279)
- โ Added support for terms lookup mechanism on terms query #1452
- Characters "<" and ">" will be removed when a query term is passed to
-
v6.0.0 Changes
Backward Compatibility Breaks
- Return the _source of inner hit nested as is without wrapping it into its full path context #1398
- โ Removed CrossIndex Class as from now use Reindex. #1411
โ Added
- โ Added clear() to
Scroll
for closing search context on ES manually - โ Added Elastica\Aggregation\StatsBucket
๐ Improvements
- Clear search context on ES after usage in
Scroll
-
v6.0.0-beta1 Changes
Backward Compatibility Breaks
- Numeric to and from parameters in date_range aggregation are interpreted according to format of the target field
- ๐ In ES6 only strict type boolean are accepted. On ES6 docs
- โ removed analyzed/not_analyzed on indices mapping
- store field only accepts boolean
- Replace IndexAlreadyExistsException with ResourceAlreadyExistsException #1350
- โ in order to delete an index you should not delete by its alias now you should delete using the concrete index name #1348
- โ Removed
optimize
from Index class as it has been deprecated in ES 2.1 and removed in ES 5.x+ use forcemerge #1351 - โ In QueryString is not allowed to use fields parameters in conjunction with default_field parameter. This is not well documented, it's possibile to understand from Elasticsearch tests : QueryStringQueryBuilderTests.java #1352
- Index mapping field of type 'string' has been removed from Elasticsearch 6.0 codebase #1353
- โก๏ธ The created and found fields in index and delete responses became obsolete after the introduction of the result field in index, update and delete responses #1354
- โ Removed file scripts #24627 #1364
- โ Removed groovy script #1364
- โ Removed native script #1364
- โ Removed old / removed script language support : javascript, python, mvel #1364
- ๐ง Disable _all by default, disallow configuring _all on 6.0+ indices #1365
- Unfiltered nested source should keep its full path #1366
- The deprecated minimum_number_should_match parameter in the bool query has been removed, use minimum_should_match instead. #1369
- For geo_distance queries, sorting, and aggregations the sloppy_arc option has been removed from the distance_type parameter. #1369
- The geo_distance_range query, which was deprecated in 5.0, has been removed. #1369
- ๐ The optimize_bbox parameter has been removed from geo_distance queries. #1369
- The disable_coord parameter of the bool and common_terms queries has been removed. If provided, it will be ignored and issue a deprecation warning. #1369
- Unfiltered nested source should keep its full path #1366
- Analyze Explain no more support request parameters, use request body instead. #1370
- ๐ Mapper Attachment plugin has been removed Use Ingest-attachment plugin and attachment processors with pipeline to ingest new documents. #1375
- ๐ Indices Query has been removed in Elasticsearch 6.0 #1376
- โ Remove deprecated type and slop field in match query #1382
- โ Remove several parse field deprecations in query builders #1382
- โ Remove deprecated parameters from ids_query #1382
- Implemented join-datatype is a special field that creates parent/child relation within documents of the same index. #1383
๐ Bugfixes
- Enforce Content-Type requirement on the layer Rest, a PR on Elastica #1301 solved it (it has been implemented only in the HTTP Transport), but it was not implemented in the Guzzle Transport. #1349
- Scroll no longer does an extra iteration both on an empty result and on searches where the last page has a significantly smaller number of results than the pages before it.
โ Added
- โ Added
Query\SpanContaining
,Query\SpanWithin
andQuery\SpanNot
#1319 - Implemented Pipeline and Processors. #1373
- โ 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
-
v5.3.6 Changes
August 29, 2019 -
v5.3.5 Changes
January 28, 2019โ Added
- โ [Backported] Added a transport class for mocking a HTTP 403 error codes, useful for testing response failures in inheriting clients #1592