Skip to content

Releases: sineflow/ElasticsearchBundle

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.

v7.0.0

17 Mar 09:36
Compare
Choose a tag to compare

[BC] Compatible with Elasticsearch 7.x only
[BC] Raised minimum requirements to Symfony 4.4+ or 5.0+, PHP 7.3+ or 8+
[BC] Removed DocumentMetadata::getType()

v6.5.0

11 Mar 18:26
Compare
Choose a tag to compare
  • [BC] document_dir configuration is replaced by entity_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

v6.4.2

17 Dec 20:21
Compare
Choose a tag to compare

Replaced EntityManager with EntityManagerInterface
Added method to override the bulk request size in ProviderInterface