# 検索結果を新着順にする

**URL:** <https://community.shopify.com/t/topic/10952>\
**Category:** 技術的なQ＆A\
**Created:** [April 10, 2020, 6:09am UTC](https://community.shopify.com/t/topic/10952 "2020-04-10T06:09:49Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

検索窓の検索結果を「新着順」で表示できるかが主題です。質問者は管理画面内に設定箇所を見つけられず、実現方法を確認していました。

途中で、コレクション一覧の並び順設定と検索結果の並び順が区別されました。コレクション側は管理画面で「最新」に設定可能ですが、検索結果そのものを新着順にする場合は別対応になります。

回答では、検索結果ページのテンプレート（search.liquid）をコード編集し、Liquid（Shopifyテーマ用テンプレート言語）で並び替え処理を入れる必要がある可能性が示されました。あわせて、HTMLやJavaScriptを含むテーマ編集の知識がないと対応は難しいとの見解が示されています。

代替案として、検索機能を拡張するShopifyアプリの利用可能性も案内されました。最終的に質問者は自力対応は難しいと判断し、Shopify Expertへ依頼する方針を決めており、実装自体は未検証のままです。

<div class="post-metadata">

**Author:** ![Meditations](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Meditations](https://community.shopify.com/u/Meditations)\
**Post date:** [April 10, 2020, 6:09am UTC](https://community.shopify.com/t/topic/10952/1 "2020-04-10T06:09:49Z")

</div>

検索をかけた際に、表示順を新着順に優先に表示させることは可能でしょうか。

色々みているのですが、設定できる箇所が見当たりません。お手数になりますが、ご教授いただけると助かります。

---

<div class="post-metadata">

**Author:** ![junichiokamura](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/junichiokamura/32/299737_2.png) [@junichiokamura](https://community.shopify.com/u/junichiokamura)\
**Post date:** [April 13, 2020, 10:03am UTC](https://community.shopify.com/t/topic/10952/2 "2020-04-13T10:03:16Z")

</div>

コレクションを作った後の商品一覧の設定に並び順というリストが出てくるので、それを「最新」にすれば新着コレクションが作れます。以下の動画も参照ください。 [https://www.youtube.com/watch?v=LUEgdi7527E](https://www.youtube.com/watch?v=LUEgdi7527E)

---

<div class="post-metadata">

**Author:** ![junichiokamura](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/junichiokamura/32/299737_2.png) [@junichiokamura](https://community.shopify.com/u/junichiokamura)\
**Post date:** [April 13, 2020, 10:04am UTC](https://community.shopify.com/t/topic/10952/3 "2020-04-13T10:04:58Z")

</div>

あ、すいません、検索窓で検索した結果のソートということでしょうか？

その場合、検索結果のtemplateをコード編集で開いて、liquidを使ってソートする必要があると思います。

---

<div class="post-metadata">

**Author:** ![Meditations](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Meditations](https://community.shopify.com/u/Meditations)\
**Post date:** [April 13, 2020, 10:09am UTC](https://community.shopify.com/t/topic/10952/4 "2020-04-13T10:09:13Z")

</div>

ありがとうございます。はい、検索窓で検索した結果を、新着順でソートしたいです。

技術的な知識が乏しいのですが、実現は可能ということでひとまず安心しました。

素人でも対応は可能なものでしょうか？

---

<div class="post-metadata">

**Author:** ![junichiokamura](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/junichiokamura/32/299737_2.png) [@junichiokamura](https://community.shopify.com/u/junichiokamura)\
**Post date:** [April 13, 2020, 10:54am UTC](https://community.shopify.com/t/topic/10952/5 "2020-04-13T10:54:34Z")

</div>

ストアのテーマ＞アクション＞コードの編集＞search.liquid というファイルが開けると思うのですが、こちらが検索結果の画面のソースです。

変更には、HTMLとliquid というテーマ制御の言語の知識が必要ですので、HTMLやJavaScriptを使ってwordpressのテンプレートをいじれるぐらいの知識がないと厳しいかもしれません。

検証してはいないですが、この辺りのアプリでご希望の機能を提供しているものがあるかもしれません。  
[https://apps.shopify.com/search?locale=ja&q=search%20%20new%20arrive](https://apps.shopify.com/search?locale=ja&q=search%20%20new%20arrive)

---

<div class="post-metadata">

**Author:** ![Meditations](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Meditations](https://community.shopify.com/u/Meditations)\
**Post date:** [April 15, 2020, 6:27am UTC](https://community.shopify.com/t/topic/10952/6 "2020-04-15T06:27:39Z")

</div>

色々とご教授を有難うございました。私には技術的にできませんので、

Shopify expertを介して誰かに頼んでみることにしました。

この度は有難うございました。
