Skip to content

Releases: sineflow/ElasticsearchBundle

v8.0.1

06 May 15:13
37d3ee4
Compare
Choose a tag to compare
  • [FIX] [BC] ssl_verification parameter for a connection now only accepts a bool value. New parameters are added: ssl_ca, ssl_key, ssl_cert.

Full Changelog: v8.0.0...v8.0.1

v8.0.0

24 Apr 11:22
a5c4f1e
Compare
Choose a tag to compare
  • Use elasticsearch/elasticsearch ^8.0
  • sfes.connection_manager global parameter moved as a profiling_backtrace connection parameter.
  • Added ConnectionManagerRegistry
  • Added more specific exception classes, all implementing ElasticsearchBundleException
  • Improved Symfony profiler integration

Full Changelog: v7.2.0...v8.0.0

v7.2.0

24 Apr 10:48
a5d7dac
Compare
Choose a tag to compare
  • Added support for Symfony^6.4
  • Removed support for PHP<8.1
  • Removed support for Symfony<5.4
  • Removed support for Monolog 1.*
  • Added support for enumType entity property option for PHP enum properties.

Full Changelog: v7.1.5...v7.2.0

v7.1.6

12 Dec 16:31
dfd2296
Compare
Choose a tag to compare

Added support for Symfony 6

Full Changelog: v7.1.5...v7.1.6

v7.1.5

10 Oct 12:27
Compare
Choose a tag to compare
  • Fixed bug in EntityTrackerSubscriber when there are more than one bulk requests

v7.1.4

23 Aug 09:39
Compare
Choose a tag to compare
  • Added ssl_verification parameter to the connections configuration

v7.1.3

29 Sep 17:00
Compare
Choose a tag to compare
  • 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

23 Jun 11:40
Compare
Choose a tag to compare
Increased visibility of ConnectionManager properties to protected

v7.1.1

22 Jun 10:36
Compare
Choose a tag to compare
  • Moved cache configuration to compiler pass, so any expressions used in the metadata_cache_pool config setting can be resolved
  • Do not cache metadata locally as it can cause too high memory usage during cache warming, just rely on the cache

v7.1.0

16 Jun 13:54
Compare
Choose a tag to compare
  • [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.