Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.2.1
-
None
-
None
-
ezplatform 2.2
php7.2
solr 6.6
Description
Using the admin Interface or the console solr_create_index will fail if you use two or more solr connections:
php bin/console --env=prod --siteaccess=site01 ezplatform:solr_create_index Purging index before starting re-indexing (use no-purge to skip this).. 12:50:02 ERROR [console] Error thrown while running command "--env=prod --siteaccess=mandant01 ezplatform:solr_create_index". Message: "The parameter "ez_search_engine_solr.connection.site01storage.boost_factor_map_id" must be defined." ["exception" => Symfony\Component\DependencyInjection\Exception\InvalidArgumentException { …},"command" => "--env=prod --siteaccess=site01 ezplatform:solr_create_index","message" => "The parameter "ez_search_engine_solr.connection.site01storage.boost_factor_map_id" must be defined."] [] In appProdProjectContainer.php line 18296: The parameter "ez_search_engine_solr.connection.site01storage.boost_factor_map_id" must be defined.
- define two or more siteaccess with different database settings
- define solr as suggested in the docs with two ore more connections:
ez_search_engine_solr: endpoints: endpoint0: dsn: %solr_dsn% core: core0 endpoint1: dsn: %solr_dsn% core: core1 endpoint2: dsn: %solr_dsn% core: core2 connections: default: entry_endpoints: - endpoint0 mapping: default: endpoint0 site01storage: entry_endpoints: - endpoint1 mapping: default: endpoint0 site02storage: entry_endpoints: - endpoint2 mapping: default: endpoint0
- use the different repositories in the siteaccess configuration