搜尋預覽

    Meilisearch Cloud 提供您專用的搜尋預覽介面。當您調整索引的設定時,這對於測試搜尋結果的相關性很有用。

    自架實例中的搜尋預覽

    如果您是自架 Meilisearch,並且需要本地搜尋介面,請在瀏覽器中存取 https://127.0.0.1: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 search preview sidebar with a highlighted export button