diff --git a/conf/cmi/search_api.index.schools.yml b/conf/cmi/search_api.index.schools.yml index 9a9c9e75..a7fa7293 100644 --- a/conf/cmi/search_api.index.schools.yml +++ b/conf/cmi/search_api.index.schools.yml @@ -4,7 +4,7 @@ status: true dependencies: config: - field.storage.tpr_unit.field_ontologyword_details - - search_api.server.elastic_kasko + - search_api.server.default module: - helfi_kasko_content - helfi_react_search @@ -12,7 +12,7 @@ dependencies: enforced: config: - field.storage.tpr_unit.field_ontologyword_details - - search_api.server.elastic_kasko + - search_api.server.default module: - search_api - helfi_react_search @@ -143,4 +143,4 @@ options: cron_limit: 50 index_directly: true track_changes_in_references: true -server: elastic_kasko +server: default diff --git a/conf/cmi/search_api.server.elastic_kasko.yml b/conf/cmi/search_api.server.default.yml similarity index 95% rename from conf/cmi/search_api.server.elastic_kasko.yml rename to conf/cmi/search_api.server.default.yml index f6062e77..1fee866c 100644 --- a/conf/cmi/search_api.server.elastic_kasko.yml +++ b/conf/cmi/search_api.server.default.yml @@ -4,7 +4,7 @@ status: true dependencies: module: - elasticsearch_connector -id: elastic_kasko +id: default name: 'Elastic kasko' description: '' backend: elasticsearch diff --git a/public/sites/default/all.settings.php b/public/sites/default/all.settings.php index cbee2055..335ee73f 100644 --- a/public/sites/default/all.settings.php +++ b/public/sites/default/all.settings.php @@ -9,17 +9,6 @@ 'sql_mode' => 'SET sql_mode="STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_ENGINE_SUBSTITUTION"', ]; -// Elasticsearch settings. -if (getenv('ELASTICSEARCH_URL')) { - $config['search_api.server.elastic_kasko']['backend_config']['connector_config']['url'] = getenv('ELASTICSEARCH_URL'); - - if (getenv('ELASTIC_USER') && getenv('ELASTIC_PASSWORD')) { - $config['search_api.server.elastic_kasko']['backend_config']['connector'] = 'basicauth'; - $config['search_api.server.elastic_kasko']['backend_config']['connector_config']['username'] = getenv('ELASTIC_USER'); - $config['search_api.server.elastic_kasko']['backend_config']['connector_config']['password'] = getenv('ELASTIC_PASSWORD'); - } -} - // Elastic proxy URL. $config['elastic_proxy.settings']['elastic_proxy_url'] = getenv('ELASTIC_PROXY_URL');