strapi-provider-meilisearch
v0.0.12
Published
- [LICENSE](LICENSE)
Downloads
9
Readme
Resources
Links
Installation
# using yarn
yarn add strapi-provider-meilisearch
# using npm
npm install strapi-provider-meilisearch --saveConfiguration
| Variable | Type | Description | Required | Default | |---------------------------| ----------------------- |---------------------------------------------------------------------|--------| ------- | | provider | string | The name of the provider you use | yes | | | providerOptions | object | Provider options | yes | | | providerOptions.apiKey | object | Please refer to openai | yes | | | providerOptions.host | object | Please refer to openai | yes | | | providerOptions.indexName | object | Name of the index. | yes | |
Example
Path - config/plugins.js
module.exports = ({ env }) => ({
// ...
"search-engine": {
enabled: true,
config: {
provider: 'meilisearch',
providerOptions: {
apiKey: env('MEILISEARCH_API_KEY'),
host: env('MEILISEARCH_HOST'),
indexName: env('MEILISEARCH_INDEX_NAME'),
},
},
},
// ...
});