adonis, meilisearch
A MeiliSearch provider for Adonis 5.x
You may install this package via:
npm i @bitkidd/adonis-meilisearch
# or
yarn add @bitkidd/adonis-meilisearch
After installation you have to configure it:
node ace configure @bitkidd/adonis-meilisearch
This will create /config/meilisearch.ts
file where you can configure the provider.
This package depends on two main ENV
variables, MEILISEARCH_HOST
and MEILISEARCH_API_KEY
, please add it to your env.ts
file and into actual .env
file.
To use MeilisSearch provider you should call it via import
import MeiliSearch from '@ioc:Adonis/Addons/MeiliSearch'
const index = MeiliSearch.index('movies')
To properly configure the provider, follow the docs here: meilisearch