Shoply 會索引哪些商品?我該如何排除它們?

Which Products Shoply AI Indexes

Shoply AI 會自動索引您 Shopify 商店中的商品,讓顧客可以搜尋、探索並對這些商品提出問題。 本頁說明預設會納入索引的商品,以及您可用來排除特定商品、不讓其被索引的不同方式。


預設會索引哪些內容

Shoply AI 會索引您 Shopify 商店中所有狀態為 Active 的商品。狀態為 Draft 或 Archived 的商品會自動略過。

若想了解可供回答使用的欄位,請參閱[了解 Shoply 使用哪些商品資料](/faq/faq-info-and-privacy)。


如何排除特定商品

有六種方式可以將商品排除在 Shoply AI 的索引之外。

1. 將商品狀態設為 Draft 或 Archived

排除商品最簡單的方式,就是在 Shopify 中將其狀態設為 Draft 或 Archived。Shoply AI 只會索引 Active 商品。


2. 使用 seo.hidden Metafield

如果商品的 Shopify SEO metafield seo.hidden 設為 "1",Shoply AI 就會略過該商品。這與 Shopify 用來將商品自搜尋引擎隱藏的訊號相同,而 Shoply AI 也會遵循此設定。

這個 metafield 通常可透過 Shopify 商品頁面內建的 SEO 設定來管理。


3. 使用 shoply.no_index Metafield

您可以為任何想排除的商品新增自訂 metafield,鍵值為 shoply.no_index。將其值設為 "1" 或 "true"(不分大小寫),即可避免該商品被索引。

當您想特別對 Shoply AI 隱藏某項商品、但又不影響它在 Shopify 店面或搜尋引擎中的可見性時,這個方式就很實用。

若要新增此 metafield:

  1. 前往 Shopify 後台中的商品頁面
  2. 捲動到頁面底部的 Metafields 區塊
  3. 新增一個 namespace 為 shoply、key 為 no_index,且 value 為 1 或 true 的 metafield

4. 依標籤排除商品(進階設定)

您可以設定 Shoply AI,自動略過任何帶有特定標籤的商品。這對於大量排除很有幫助,例如排除所有標記為 "internal"、"sample" 或 "not-for-sale" 的商品。

若要設定此功能,請前往 Shoply AI 管理控制台的 Settings -> Advanced Settings 區塊,並將以下內容加入 JSON 設定中:

json
{ "exclude_products_with_tags": ["internal", "sample", "not-for-sale"] }

任何至少帶有一個列出標籤的商品,都會被排除在索引之外。標籤比對不分大小寫。


5. 排除免費商品(進階設定)

如果您的商店包含價格為 $0.00 的商品(例如免費樣品、禮品卡或佔位商品),而您不希望它們出現在搜尋結果中,可以啟用 exclude_free_products 設定:

json
{ "exclude_free_products": true }

啟用後,任何最大變體價格為 $0.00 的商品都會被排除在索引之外。

6. 依銷售管道篩選(進階設定)

如果您的商店會將商品發布到多個銷售管道(例如「Online Store」、批發管道或 POS 管道),您可以設定 Shoply AI 僅索引已發布到特定銷售管道的商品。

例如,如果您只希望 Shoply AI 索引在 Online Store 上架的商品,那麼只發布到其他管道的商品就會被排除。

若要啟用此功能,請前往 Settings -> Advanced Settings,並將以下內容加入 JSON 設定中:

json
{ "sales_channel": "Online Store" }

請將 "Online Store" 替換為 Shopify 後台中顯示的該銷售管道完整名稱。


摘要

方法設定位置最適合用途
將狀態設為 Draft/ArchivedShopify 商品頁面尚未準備好販售的商品
seo.hidden = "1" metafieldShopify 商品 SEO 設定要從所有搜尋中隱藏的商品
shoply.no_index = "1" metafieldShopify 商品 metafields僅對 Shoply AI 隱藏
exclude_products_with_tagsShoply 進階設定依標籤大量排除
exclude_free_productsShoply 進階設定隱藏 $0 商品
sales_channelShoply 進階設定排除未上架於特定管道的商品

在哪裡找到進階設定

請前往 Shoply AI 管理控制台中的 Settings 頁面,然後向下捲動到 Advanced Settings 區塊。 您可以在該處提供 JSON 物件,以設定 exclude_products_with_tags、exclude_free_products 及其他選項。


Settings → Advanced Settings is the editor used for the configuration below. The screenshot shows the demo store’s existing configuration; use the keys explained in this guide.
Settings → Advanced Settings is the editor used for the configuration below. The screenshot shows the demo store’s existing configuration; use the keys explained in this guide. Click the screenshot to view it at full size.

變更後須知

使用上述任一方式排除商品後,變更不會立即生效。您需要採取以下其中一種方式:

  • 在 Shoply AI 管理控制台中手動觸發 Recrawl,或
  • 等待下一次自動索引更新

另請參閱:控制 Shoply 可使用哪些商品 Metafield