Releases: sineflow/ElasticsearchBundle
Releases · sineflow/ElasticsearchBundle
v7.1.6
v7.1.5
v7.1.4
v7.1.3
- Fixed creation of default cache to be properly initialized as a cache pool, so it shows correctly in the profiler
- Updated custom cache example
- Warmup object metadata cache during cache warmup
- Reorganised file structure
- Fixed knp paginator deprecation
- Handle null 'sortFieldParameterName' or 'sortDirectionParameterName' passed to KNP paginator
- Added support for Monolog 2 and 3
- Added
IndexManagerRegistry::getByClass()
method - Merge index definitions extending a template recursively
v7.1.2
v7.1.1
v7.1.0
- [BC] Removed deprecated AbstractManagerAwareCommand
- [BC] Removed IndexManagerFactory
- [BC] Removed sfes.index_manager.class - Replacing the IndexManager service now works by overriding its service definition
- [BC] Changed the order of the arguments of IndexManager::__construct()
- IndexManager::getDocumentClass() visibility changed to public
- [BC] Removed legacy public service aliases - DI must now be used (sfes.document_converter, sfes.provider_registry, sfes.index_manager_registry, sfes.finder, sfes.document_locator, sfes.document_parser, sfes.document_metadata_collector, sfes.logger.collection_handler, sfes.connection_factory, sfes.profiler, sfes.subscriber.knp_paginate_query_subscriber, sfes.subscriber.entity_tracker_subscriber)
- Add support for autowiring ConnectionManager based on parameter name (e.g ConnectionManager $defaultConnection)
- [BC] Removed ConnectionManagerFactory
- [BC] Changed ConnectionManager constructor arguments
- Added 'providerClass' annotation to Document annotation
- Automatically registers ProviderInterface instances as data providers for autoconfiguration
- [BC] Removed AbstractProvider::_construct(). Entity data provider must now be specified in the Document annotation as providerClass and data Provider instances should no longer know what entity they are for.
- [BC] Refactored ProviderRegistry removing addProvider(), removeProvider(), getProviderId(), getProviderInstance() and adding getProviderForEntity() and getSelfProviderForEntity()
- [BC] Removed app.es.language_provider in favour of passing 'languages' in the configuration (With the old service, even if a new language is returned from the LanguageProvider, the entities metadata may already have been cached, so the new language would not automatically be available in entities. Also when a language is removed, this would change the index mapping and likely break things, so dynamic changing of the available languages is not a good idea. If a service must be used to get the available languages, you could inject a service call as an expression instead of the sfes.languages parameter
- [BC] Removed dependencies and methods from Repository (reindex, delete, update, persist, persistRaw)
- Get repositories via RepositoryFactory, allowing for adding any additional DI dependencies to custom repositories
- [BC] Refactored caching of metadata, which now uses Symfony\Contracts\Cache\CacheInterface instead of Doctrine\Common\Cache\Cache. Cache is now built on cache warmup or on demand, not during instantiation.
- [BC] Removed DocumentMetadataCollector::getIndexManagersForDocumentClasses() and DocumentMetadataCollector::getDocumentMetadataForIndex()
- Added metadata_cache_pool configuration key to specify a Symfony\Contracts\Cache\CacheInterface cache pool to be used for metadata
- Clear scroll after it has been fully processed
- [BC] Removed sfes.logger.log_handler and sfes.logger.log services and sfes.logging.path parameter. Symfony's default logger is now used loggin to 'sfes' channel
- [BC] Renamed sfes.logger.trace to sfes.logger.profiler
- Added optional $suffix parameter to IndexManager::getUniqueIndexName() to give more control over new index names
- Make sure no dot-prefixed indices are queried by ConnectionManager methods existsAlias(), existsIndexOrAlias(), getAliases() and refresh(), in order to avoid deprecation warning from ES 7.* when trying to access system indices. Creation of dot-prefixed indices is deprecated in ES7, unless they are system or hidden and we don't care for such.
v7.0.0
v6.5.0
- [BC]
document_dir
configuration is replaced byentity_locations
. There is no longer a default location for the entity files and no longer available bundles will be scanned. Document locations and namespaces need to be explicitly defined in `entity_locations'. - [BC] Removed DocumentLocator methods: setDocumentDir, getDocumentDir, getShortClassName
- [BC] Removed DocumentMetadata::getShortClassName()
- [BC] Raised Symfony requirement to 4.4+
- Fixed Symfony deprecations