0.27.0 • Published 3 years ago
@bitkidd/adonis-meilisearch v0.27.0
Table of contents
Adonis MeiliSearch
adonis, meilisearch
A MeiliSearch provider for Adonis 5.x
Installation
You may install this package via:
npm i @bitkidd/adonis-meilisearch
# or
yarn add @bitkidd/adonis-meilisearchAfter installation you have to configure it:
node ace configure @bitkidd/adonis-meilisearchThis 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.
Usage
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