egg-meilisearch
egg plugin for meilisearch
Install
$ npm i egg-meilisearch --save
Usage
// {app_root}/config/plugin.js
exports.meilisearch = {
enable: true,
package: 'egg-meilisearch',
};
Configuration
// {app_root}/config/config.default.js
exports.meilisearch = {
default: {
host: '',
apiKey: '',
},
};
see config/config.default.js for more detail.
Example
在索引 movies
中搜索包含关键词 How
的数据
await this.app.meilisearch.index('movies').search('How');
查看 API reference 了解更多使用方法
Questions & Suggestions
Please open an issue here.