Meilisearch Cloud 提供专用的搜索预览界面。这对于在调整索引设置时测试搜索结果相关性非常有用。
如果您是自托管 Meilisearch 并需要本地搜索界面,请在浏览器中访问 https://:7700。此本地预览只允许您执行纯文本搜索,不提供自定义选项。

访问和使用搜索预览

登录您的 Meilisearch Cloud 帐户,导航到您的项目,然后点击“搜索预览”
Meilisearch Cloud's project menu with the last option, 'Search preview', selected
使用左侧的输入框选择您要搜索的索引
Meilisearch Cloud's search preview interface, with the index selecting input highlighted
然后使用主输入框执行纯关键字搜索
Meilisearch Cloud's search preview interface, with the search input selected and containing a search string
在调试相关性时,您可能需要激活“排名分数”选项。这会显示每个结果的整体排名分数,以及每个独立排名规则的分数
The same search preview interface as in the previous image, but with the 'Ranking score' option turned on. Search results are the same, but include the document's ranking score

配置搜索选项

使用左侧菜单配置排序筛选。这些需要您首先编辑索引的可排序和可筛选属性。您还可以将任何可筛选属性配置为分面。在此示例中,“流派”是其中一个已配置的分面
The sidebar of the search preview interface, with a handful of options, including 'Sort by', 'AI-powered search', 'Filters', and 'Genres'
如果您的项目已启用此功能,您还可以执行AI 驱动的搜索 点击“高级参数”可访问更多自定义选项,包括设置 Meilisearch 返回的文档字段和明确声明搜索语言:
The same sidebar as before with the 'Advanced parameters' option highlighted

导出搜索选项

您可以导出完整的搜索查询,以便在其他工具和环境中进行进一步测试。点击“高级参数”旁边的云图标,然后选择下载 JSON 文件或将查询复制到剪贴板
The same sidebar as before with the 'Export' option highlighted
© . This site is unofficial and not affiliated with Meilisearch.