Skip to content

Commit

Permalink
Update local dev config for solr9
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Dec 19, 2023
1 parent ae5a3a2 commit ffb5210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions freesound/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffb5210

Please sign in to comment.