開始使用 Meilisearch Cloud

    本教學將引導您設定 Meilisearch Cloud,建立專案和索引,將文件新增至其中,並使用預設網頁介面執行首次搜尋。

    您需要一個 Meilisearch Cloud 帳戶才能繼續操作。如果您沒有帳戶,請在 https://cloud.meilisearch.com/register 註冊一個 14 天的免費試用帳戶。

    建立專案

    若要使用 Meilisearch Cloud,您必須先建立一個專案。專案作為索引、任務、帳單和其他與 Meilisearch Cloud 相關資訊的容器。

    點擊頂部選單上的「New project」(新專案)按鈕。如果您有免費試用帳戶,且這是您的第一個專案,則按鈕會顯示「Start free trial」(開始免費試用)

    The Meilisearch Cloud menu, featuring the "New Project" button

    將您的專案命名為 meilisearch-quick-start,並選擇離您最近的地區,然後點擊「Create project」(建立專案)

    A modal window with two mandatory fields: "Project name" and "Select a region"

    如果您不是使用免費試用帳戶,您還必須根據您的資料集大小和每月搜尋次數選擇計費方案

    A variation of the previous modal window with an extra mandatory field: "Select a plan". There are four billing plan options, from cheapest to most expensive: "Build", "Grow", "Pro", and "Enterprise"

    建立您的專案可能需要幾分鐘。請查看專案列表以追蹤其狀態。一旦專案準備就緒,點擊其名稱以進入專案總覽頁面

    Meilisearch Cloud's main list of projects. It features only one project, "meilisearch-quick-start", and shows information such as API keys, URL, and number of monthly searches

    建立索引並新增文件

    建立專案後,您必須為您要搜尋的資料建立索引。Meilisearch 會儲存並處理您新增到索引中的資料。一個專案可能包含多個索引。

    首先,點擊專案頁面選單中的索引標籤

    The project overview page, featuring a secondary menu with several links. A red arrow points at a menu item: "Indexes"

    這會將您導向索引列表。點擊「Create an index」(建立索引)

    An empty list of indexes in this project with a button on the upper right corner

    在名稱欄位中輸入 movies,然後點擊「Create Index」(建立索引)

    A modal window with one mandatory field: "Index name"

    建立索引的最後一步是向其中新增資料。選擇「File upload」(檔案上傳)

    Another modal window with three options. A red arrow points at the chosen option, "File upload"

    Meilisearch Cloud 會要求您提供資料集。為了跟隨本教學,請使用這個 電影列表。將檔案下載到您的電腦,將其拖放到指定區域,然後點擊「Import documents」(匯入文件)

    Another modal window with a large drag-and-drop area. It indicates a file named "movies.json" will be uploaded

    Meilisearch Cloud 會為您的文件建立索引。這可能需要一些時間。點擊「See index list」(查看索引列表)並等待。完成後,點擊「Settings」(設定)以查看索引總覽

    A list of all indexes in this project. It shows a single index, movies, and indicates it contains over 30,000 documents

    搜尋

    在所有資料上傳和處理完畢後,最後一步是執行幾個測試搜尋,以確認 Meilisearch 是否按預期運作。

    點擊麵包屑選單上的專案名稱以返回專案總覽

    The index list page. A red arrow points at the breadcrumb menu

    Meilisearch Cloud 具有搜尋預覽介面。點擊「Search preview」(搜尋預覽)以存取它

    The project overview page. A red arrow points at a menu item named "Search preview"

    最後,嘗試搜尋幾部電影,例如「Solaris」

    The search preview interface, with "solaris" written in the search bar

    如果您可以在輸入時看到結果出現,恭喜:您現在已經了解使用 Meilisearch Cloud 的所有基本步驟。

    下一步

    本教學教您如何使用 Meilisearch Cloud 的介面來建立專案、向其中新增索引,以及使用搜尋預覽介面。

    在大多數實際情況下,您將建立自己的搜尋介面,並透過 Meilisearch 的 API 檢索結果。要了解如何使用命令列或您偏好的語言的 SDK 新增文件和搜尋,請查看 Meilisearch 快速入門