- Bug: (CVE-2018-8074): Fixed possibility of manipulated condition when unfiltered input is passed to
ActiveRecord::findOne()
orfindAll()
(cebe) - Bug #161: Changed yii\base\Object to yii\base\BaseObject (sashsvamir)
- Enh #112: Added support for Elasticsearch 5.0. Minimum requirement is also now Elasticsearch 5.0 (holycheater, beowulfenator, i-lie)
- Chg: Removed
Command::getIndexStatus()
and addedgetIndexStats()
andgetIndexRecoveryStats()
to reflect changes in Elasticsearch 5.0 (cebe) - Chg: Search queries that result in a 404 error due to missing indices are now no longer silently interpreted as empty result, but will throw an exception (cebe)
- no changes in this release.
- Bug #120: Fix debug panel markup to be compatible with Yii 2.0.10 (drdim)
- Bug #125: Fixed
ActiveDataProvider::refresh()
to also reset$queryResults
data (sizeg) - Bug #134: Fix infinite query loop "ActiveDataProvider" when the index does not exist (eolitich)
- Bug #149: Changed
yii\base\Object
toyii\base\BaseObject
(dmirogin) - Bug: (CVE-2018-8074): Fixed possibility of manipulated condition when unfiltered input is passed to
ActiveRecord::findOne()
orfindAll()
(cebe) - Bug: Updated debug panel classes to be consistent with yii 2.0.7 (beowulfenator)
- Bug: Added accessor method for the default elasticsearch primary key (kyle-mccarthy)
- Enh #15: Special data provider
micetm\elasticsearch\ActiveDataProvider
created (klimov-paul) - Enh #43: Elasticsearch log target (trntv, beowulfenator)
- Enh #47: Added support for post_filter option in search queries (mxkh)
- Enh #60: Minor updates to guide (devypt, beowulfenator)
- Enh #82: Support HTTPS protocol (dor-denis, beowulfenator)
- Enh #83: Support for "gt", ">", "gte", ">=", "lt", "<", "lte", "<=" operators in query (i-lie, beowulfenator)
- Enh #119: Added support for explanation on query (kyle-mccarthy)
- Enh #150: Explicitily send
Content-Type
header in HTTP requests to elasticsearch (lubobill1990) - Enh: Bulk API implemented and used in AR (tibee, beowulfenator)
- Enh: Deserialization of raw response when text/plain is supported (Tezd)
- Enh: Added ability to work with aliases through Command class (Tezd)
- Bug #8: Fixed issue with running out of sockets when running a large number of requests by reusing curl handles (cebe)
- Bug #13: Fixed wrong API call for getting all types or searching all types,
_all
works only for indexes (cebe) - Bug #19:
DeleteAll
now deletes all entries, not first 10 (beowulfenator) - Bug #48:
UpdateAll
now updates all entries, not first 10 (beowulfenator) - Bug #65: Fixed warning
array to string conversion
when parsing error response (rhertogh, silverfire) - Bug #73: Fixed debug panel exception when no data was recorded for elasticsearch panel (jafaripur)
- Enh #2: Added
min_score
option to query (knut) - Enh #28: AWS Elasticsearch service compatibility (andrey-bahrachev)
- Enh #33: Implemented
Command::updateSettings()
andCommand::updateAnalyzers()
(githubjeka) - Enh #50: Implemented HTTP auth (silverfire)
- Enh #62: Added support for scroll API in
batch()
andeach()
(beowulfenator, 13leaf) - Enh #70:
Query
andActiveQuery
now have$options
attribute that is passed to commands generated by queries (beowulfenator) - Enh: Unified model creation from result set in
Query
andActiveQuery
withpopulate()
(beowulfenator)
- no changes in this release.
- Enh: Added
ActiveFixture
class for testing fixture support for elasticsearch (cebe, viilveer)
- Bug #5662: Elasticsearch AR updateCounters() now uses explicitly
groovy
script for updating making it compatible with ES >1.3.0 (cebe) - Bug #6065:
ActiveRecord::unlink()
was failing in some situations when working with relations via array valued attributes (cebe) - Enh #5758: Allow passing custom options to
ActiveRecord::update()
and::delete()
including support for routing needed for updating records with parent relation (cebe) - Enh: Add support for optimistic locking (cebe)
- Enh #3381: Added ActiveRecord::arrayAttributes() to define attributes that should be treated as array when retrieved via
fields
(cebe)
- Bug #3587: Fixed an issue with storing empty records (cebe)
- Bug #4187: Elasticsearch dynamic scripting is disabled in 1.2.0, so do not use it in query builder (cebe)
- Enh #3527: Added
highlight
property to Query and ActiveRecord. (Borales) - Enh #4048: Added
init
event toActiveQuery
classes (qiangxue) - Enh #4086: changedAttributes of afterSave Event now contain old values (dizews)
- Enh: Make error messages more readable in HTML output (cebe)
- Enh: Added support for query stats (cebe)
- Enh: Added support for query suggesters (cebe, tvdavid)
- Enh: Added support for delete by query (cebe, tvdavid)
- Chg #4451: Removed support for facets and replaced them with aggregations (cebe, tadaszelvys)
- Chg: asArray in ActiveQuery is now equal to using the normal Query. This means, that the output structure has changed and
with
is supported anymore. (cebe) - Chg: Deletion of a record is now also considered successful if the record did not exist. (cebe)
- Chg: Requirement changes: Yii now requires elasticsearch version 1.0 or higher (cebe)
- Bug #1993: afterFind event in AR is now called after relations have been populated (cebe, creocoder)
- Bug #2324: Fixed QueryBuilder bug when building a query with "query" option (mintao)
- Enh #1313: made index and type available in
ActiveRecord::instantiate()
to allow creating records based on elasticsearch type when doing cross index/type search (cebe) - Enh #1382: Added a debug toolbar panel for elasticsearch (cebe)
- Enh #1765: Added support for primary key path mapping, pk can now be part of the attributes when mapping is defined (cebe)
- Enh #2002: Added filterWhere() method to micetm\elasticsearch\Query to allow easy addition of search filter conditions by ignoring empty search fields (samdark, cebe)
- Enh #2892: ActiveRecord dirty attributes are now reset after call to
afterSave()
so information about changed attributes is available inafterSave
-event (cebe) - Chg #1765: Changed handling of ActiveRecord primary keys, removed getId(), use getPrimaryKey() instead (cebe)
- Chg #2281: Renamed
ActiveRecord::create()
topopulateRecord()
and changed signature. This method will not call instantiate() anymore (cebe) - Chg #2146: Removed
ActiveRelation
class and moved the functionality toActiveQuery
. All relational queries are now directly served byActiveQuery
allowing to use custom scopes in relations (cebe)
- Initial release.