0.27.0 • Published 2 years ago

@bitkidd/adonis-meilisearch v0.27.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Table of contents

Adonis MeiliSearch

adonis, meilisearch

npm-image license-image typescript-image

A MeiliSearch provider for Adonis 5.x

Installation

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.

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