# サイト内検索で指定のページを非表示にしたい

**URL:** <https://community.shopify.com/t/topic/17392>\
**Category:** 技術的なQ＆A\
**Created:** [August 6, 2020, 1:59am UTC](https://community.shopify.com/t/topic/17392 "2020-08-06T01:59:13Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

Shopifyのページ機能で作成した広告・キャンペーン用ランディングページを、サイト内検索に表示させない方法が主題です。外部検索エンジン側は theme.liquid で制御予定で、今回はストア内検索のみが対象でした。

回答では、Shopifyの開発者向けドキュメントにある方法が案内され、対象リソースをサイトマップや検索対象から外すには Metafield の設定が必要と説明されています。これにより、ストア内検索結果にも表示されなくなる可能性がある、という整理です。

その後、APIを使わず Liquid の編集だけで対応できないかという質問が出ましたが、具体的な Liquid のみでの実装方法は提示されませんでした。代替案として、Metafield を扱えるアプリを使って設定する方法が提案されています。

結論として、標準機能やLiquidのみでの簡単な非表示方法は示されず、MetafieldをAPIまたはアプリ経由で設定する方向でいったん着地しています。

<div class="post-metadata">

**Author:** ![m\_o\_e](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@m\_o\_e](https://community.shopify.com/u/m_o_e)\
**Post date:** [August 6, 2020, 1:59am UTC](https://community.shopify.com/t/topic/17392/1 "2020-08-06T01:59:13Z")

</div>

ベーシックプランを利用しています。

ページ機能にて、広告やキャンペーンなど用のランディングページを作成しています。

これらのページをサイト内検索でひっかからないようにしたいのですが、可能なのでしょうか。

こちらのページの「[ストアフロント検索で非表示](https://help.shopify.com/api/guides/updating-seo-data#hide-a-resource-from-search-engines-and-sitemaps)」部分にヒントがあるかと思ったのですが、404になってしまいまして…

[https://help.shopify.com/ja/manual/online-store/os/storefront-search#part-fba02d326a6d9e7d](https://help.shopify.com/ja/manual/online-store/os/storefront-search#part-fba02d326a6d9e7d)

※外部検索エンジンについてはtheme.liuidで制御予定です。

---

<div class="post-metadata">

**Author:** ![jnp](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/jnp/32/87785_2.png) [@jnp](https://community.shopify.com/u/jnp)\
**Post date:** [August 6, 2020, 6:27am UTC](https://community.shopify.com/t/topic/17392/2 "2020-08-06T06:27:36Z")

</div>

下記ページはご覧いただけますでしょうか。

[https://shopify.dev/tutorials/manage-seo-data-with-admin-api#hide-a-resource-from-search-engines-and-sitemaps](https://shopify.dev/tutorials/manage-seo-data-with-admin-api#hide-a-resource-from-search-engines-and-sitemaps)

リソースをサイトマップから非表示にすることでストア内検索の結果にも表示されなくなるようです。

---

<div class="post-metadata">

**Author:** ![m\_o\_e](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@m\_o\_e](https://community.shopify.com/u/m_o_e)\
**Post date:** [August 6, 2020, 9:30am UTC](https://community.shopify.com/t/topic/17392/3 "2020-08-06T09:30:19Z")

</div>

jnpさま

早速ありがとうございました。

ページ拝見しました。

Metafieldへのリクエストは、APIを使用しないとできないのでしょうか・・・？

現状、高度な開発技術を持ち合わせておらず、liquidファイルの変更レベルで可能であれば実装したいと思っておりました。

---

<div class="post-metadata">

**Author:** ![Tomoyuki\_K](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/tomoyuki_k/32/206495_2.png) [@Tomoyuki\_K](https://community.shopify.com/u/Tomoyuki_K)\
**Post date:** [August 6, 2020, 3:03pm UTC](https://community.shopify.com/t/topic/17392/4 "2020-08-06T15:03:51Z")

</div>

Metafiledの登録はAppを利用することで可能です！  
[https://apps.shopify.com/search?app\_integration\_kit=off&app\_integration\_pos=off&category=all&pricing=all&q=Metafields&requirements=on&sort\_by=installed](https://apps.shopify.com/search?app_integration_kit=off&app_integration_pos=off&category=all&pricing=all&q=Metafields&requirements=on&sort_by=installed)

ただし、種類がたくさんあるのでどれがいいとは断言できませんが、自分に合うやつを探すといいかと思います!

---

<div class="post-metadata">

**Author:** ![m\_o\_e](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@m\_o\_e](https://community.shopify.com/u/m_o_e)\
**Post date:** [August 13, 2020, 2:06am UTC](https://community.shopify.com/t/topic/17392/5 "2020-08-13T02:06:43Z")

</div>

Tomoyuki\_Kさま

お教えいただき、ありがとうございます！

アプリという手があったのですね。

こちらで探し、試してみます。

ありがとうございました！
