You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the transition from Elasticsearch to Meilisearch, we need to make sure that the forum works with this new search engine. Thus, we need to implement a togglable search engine which will query Meilisearch instead of Elasticsearch, both for storage and retrieval.
We need to implement the following:
Create a FORUM_SEARCH_ENGINE setting, which will point to a search engine class imported at runtime.
Create a MeilisearchBackend class that exposes a similar API to the ElasticsearchBackend. Make sure that both classes inherit from an abstract BaseSearchBackend class. Replace all instances of ElasticsearchBackend in the codebase by BaseSearchBackend.
Implement the required methods of MeilisearchBackend class. Do this in a test-driven development (TDD) manner.
As part of the transition from Elasticsearch to Meilisearch, we need to make sure that the forum works with this new search engine. Thus, we need to implement a togglable search engine which will query Meilisearch instead of Elasticsearch, both for storage and retrieval.
We need to implement the following:
FORUM_SEARCH_ENGINE
setting, which will point to a search engine class imported at runtime.MeilisearchBackend
class that exposes a similar API to theElasticsearchBackend
. Make sure that both classes inherit from an abstractBaseSearchBackend
class. Replace all instances ofElasticsearchBackend
in the codebase byBaseSearchBackend
.MeilisearchBackend
class. Do this in a test-driven development (TDD) manner.Prior work exist which we can use as reference:
The text was updated successfully, but these errors were encountered: