Releases: ongr-io/ElasticsearchBundle
Releases · ongr-io/ElasticsearchBundle
v5.0.4
v5.0.3
v5.0.2
v5.0.1
Changes in this release
- Added default result structure for
findbyids
. If there is no results['hits']['hits']
throws exception. #771 - Separate dir mapping fix #765
- Fixed date and boolean conversion issues #770
- Changed
Repository::getScrollConfiguration()
to public. If you create manual scroll search for multiple types this might be a very handy function. #768
v1.2.9
v5.0.0
Changes in this release
- Drop PHP 5.5 support. Now only PHP >=5.6 are supported.
- Added support for Elasticsearch 5.0
- Array iterator now returns document _id field as well.
- Document annotation now has an options support.
You can pass any settings along parameters you want. Simply just put them in the options. Manager::getSettings()
was added. Returns the currently configured settings for manager index.Manager::getAliases()
was added. Gets Elasticsearch aliases information.- Added
text
andkeyword
property types support. - Added
murmur3
,attachments
,percolator
property type support - Added
hash_map
annotation. #747 - Added
ONGR\ElasticsearchBundle\Exception
namespace. - Added
char_filter
analysis support. - All features and fixes from 1.2.x
- Added
document_dir
. From now on you can change documents directory for each mapped bundle. - No more needed to define analysis in manager, it will be collected automatically from documents.
Breaking changes
- Removed all deprecations from 1.x version.
- Removed
_ttl
metafield annotation. - Service name
@annotations.cached_reader
changed to@es.annotations.cached_reader
#717 - From Document annotation removed all properties except
type
. From now on everything has to be defined in theoptions
. string
property type was deprecated in elasticsearch 5.0, please usetext
orkeyword
accordingly.
More info: https://www.elastic.co/blog/strings-are-dead-long-live-stringsauth
in the configuration was removed. Use authentication information directly in host or create event listener
to modify client creation. There are too many ways to authenticate elasticsearch. That said we leaving this customisation to the user due difficult support.connections
node in configuration was removed. Useindex
from now on. There was absolute
misunderstanding to have exposed connections, we never saw any benefits to use single connection
between several managers.- Changed the namespace of the
DocumentParserException
toONGR\ElasticsearchBundle\Mapping\Exception
. #722 analysis
node inindex
/connection
was deprecated. From now on used analyzers, filters, etc. must be provided in document annotationsResults
(constants container for result type definitions) class was removed in favor for
new find functions with predefined types in the names.- Export service now uses own query calling instead of elasticsearch-php. It was changes due a bug
in hits iterator in elasticsearch-php. We will try to help them to resolve this issue. Manager::execute()
was removed. UseManager::search()
instead.Manager::scroll()
third argument with result type definition was removed.
Now you can get only raw result data from scroll.AbstractElasticsearchTestCase::runTest()
was removed. It was introduced when elasticsearch
in our CI was very unstable. Now there is no sense to repeat failing tests again and again.AbstractElasticsearchTestCase::getNumberOfRetries()
was removed.
If you write tests by extendingAbstractElasticsearchTestCase
delete your retries data provides.
v1.2.8
v1.2.7
v5.0.0-rc3
v5.0.0-rc2
Changes in this release
- Introduced
document_dir
by keeping BC. #724 - No more needed to define analysis in manager, it will be collected automatically from documents.
- Many minor fixes