Implement MeiliSearch as FTS engine and hooks in PocketBase to sync posts with MeiliSearch.
Implement commands to manage MeiliSearch/index:
search key: Get MeiliSearch read-only API key.
search index sync: Sync all posts with MeiliSearch index.
search index clear: Clear posts index.
Add frontend support for search.
Configuration
Users must provide the MEILISEARCH_HOST and MEILISEARCH_ADMIN_API_KEY environment variables in the frontend and backend to enable search. This will display a search bar on the homepage, as well as enable the /search route and register all related hooks and commands.
search key
: Get MeiliSearch read-only API key.search index sync
: Sync all posts with MeiliSearch index.search index clear
: Clear posts index.Configuration
Users must provide the
MEILISEARCH_HOST
andMEILISEARCH_ADMIN_API_KEY
environment variables in the frontend and backend to enable search. This will display a search bar on the homepage, as well as enable the/search
route and register all related hooks and commands.