Skip to content

Commit c12d3d4

Browse files
committed
fix: override FORUM_SEARCH_BACKEND
The Tutor forum plugin hardcodes FORUM_SEARCH_BACKEND to Meilisearch, so we need to override it here, otherwise the forum will continue to use Meilisearch. Private-ref: https://tasks.opencraft.com/browse/BB-9975
1 parent 9b5b437 commit c12d3d4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ This plugin provides the following settings to Open edX components for integrati
7676

7777
- (common) ``TYPESENSE_ENABLED: bool = True`` - whether the Typesense backend is enabled
7878
- (common) ``TYPESENSE_COLLECTION_PREFIX: str = "the_configured_collection_prefix"`` - a prefix that the backend should use for all collections (the API key is scoped to this prefix)
79+
- (common) ``FORUM_SEARCH_BACKEND = "forum.search.typesense.TypesenseBackend"`` - necessary to override Tutor's default forum search backend value pointing to Meilisearch
7980
- (cms, lms) ``TYPESENSE_URL: str = "http://typesense:8108"`` - the internal url for accessing the Typesense API
8081
- (cms, lms) ``TYPESENSE_PUBLIC_URL: str = "http://(depends on TYPESENSE_PUBLIC_HOST)"`` - the public url to the Typesense API (for user searches on the frontend)
8182
- (cms, lms) ``TYPESENSE_API_KEY: str = "the api key"`` - an api key for the Open edX backend to make updates to Typesense collections
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
TYPESENSE_ENABLED = True
22
TYPESENSE_COLLECTION_PREFIX = "{{ TYPESENSE_COLLECTION_PREFIX }}"
3+
FORUM_SEARCH_BACKEND = "forum.search.typesense.TypesenseBackend"

0 commit comments

Comments
 (0)