From ffb521048ae7b91bf9847a29b8563ada09275895 Mon Sep 17 00:00:00 2001 From: ffont Date: Tue, 19 Dec 2023 16:10:44 +0100 Subject: [PATCH] Update local dev config for solr9 --- docker-compose.yml | 9 --------- freesound/settings.py | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 516c4d180..ee91daa15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,15 +50,6 @@ services: # Search server search: - image: solr:5.5.5 - volumes: - - solr5data:/opt/solr/server/solr/mycores - - ./utils/search/solr5.5.5/cores:/opt/solr/server/solr/configsets/ - - ./utils/search/solr5.5.5/docker-entrypoint:/docker-entrypoint-initdb.d - ports: - - "${FS_BIND_HOST:-127.0.0.1}:${LOCAL_PORT_PREFIX}8983:8983" - - solr9: build: context: ./ dockerfile: ./docker/Dockerfile.solr diff --git a/freesound/settings.py b/freesound/settings.py index d01e01118..2223ddd38 100644 --- a/freesound/settings.py +++ b/freesound/settings.py @@ -634,9 +634,9 @@ ] SEARCH_FORUM_SORT_DEFAULT = SEARCH_FORUM_SORT_OPTION_THREAD_DATE_FIRST -SEARCH_ENGINE_BACKEND_CLASS = 'utils.search.backends.solr555pysolr.Solr555PySolrSearchEngine' +SEARCH_ENGINE_BACKEND_CLASS = 'utils.search.backends.solr9pysolr.Solr9PySolrSearchEngine' SOLR5_BASE_URL = "http://search:8983/solr" -SOLR9_BASE_URL = "http://solr9:8983/solr" +SOLR9_BASE_URL = "http://search:8983/solr" # ------------------------------------------------------------------------------- # Similarity client settings