Elastica 3.1.0 (download). This release is compatible with elasticsearch 2.1.1.
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->getDocumentandElastica\ResultSet->getDocumentsfor 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
Dependencies
| Project | Version | Required |
|---|---|---|
| Elasticsearch | 2.1.1 | yes |
| Elasticsearch mapper attachments plugin | 3.1.1 | no |
| Elasticsearch image plugin | 1.7.1 | no |