搜索预览

    Meilisearch Cloud 为您提供专用搜索预览界面。当您调整索引设置时,这对于测试搜索结果的相关性非常有用。

    自托管实例中的搜索预览

    如果您是自托管 Meilisearch 并且需要本地搜索界面,请在浏览器中访问 http://localhost: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

    配置搜索选项

    使用左侧的菜单配置排序过滤。这些需要您首先编辑索引的可排序和可过滤属性。您还可以将任何可过滤属性配置为 facets。在此示例中,“Genres”是配置的 facets 之一

    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 search preview sidebar with a highlighted export button