vuepress-plugin-meilisearch2
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

vuepress-plugin-meilisearch2

这是在 VuePress Theme Hope 中使用的例子

import { defineUserConfig } from 'vuepress';
import { MeiliSearchPlugin } from 'vuepress-plugin-meilisearch2';

defineUserConfig({
  plugins: [
    MeiliSearchPlugin({
      host: '',
      apiKey: '',
      index: '',
    })
  ]
})
import { hopeTheme } from 'vuepress-theme-hope';

export default hopeTheme({
  navbarLayout: {
    start: ['Brand'],
    center: ['Links'],
    // 插入到 navbar
    end: ['Repo', 'Outlook', 'MeiliSearch'],
  },
});

选项

  • host - 主机
  • apiKey - 密钥
  • index - 要查询的索引
  • limit - 设置单个查询返回的最大文档数,默认20
  • offset - 在搜索结果中设置起始点,有效地跳过给定数量的文档,默认0
  • filter - 使用筛选表达式来优化搜索结果,详见filtering

Package Sidebar

Install

npm i vuepress-plugin-meilisearch2

Weekly Downloads

4

Version

0.3.0

License

MIT

Unpacked Size

414 kB

Total Files

25

Last publish

Collaborators

  • ush2a