Searching your store

The online store search is a fully featured, powerful tool for your customers to search across all of your store's products, articles, and pages.

Singular and plural search terms

Searching tries to match terms in both their singular and plural forms.

Searching for

Puppies

matches results containing "puppy" or "puppies".

Using AND, OR and NOT operators

AND

All search terms are by default AND-ed together, so searching for

artichoke hearts

yields results containing both "artichoke" and "hearts". Joining operators aren't necessary.

OR

Searching for

artichoke OR hearts

yields results containing at least one of "artichoke" or "hearts".

NOT

Searching for results without a term can be done by prefixing the term with a minus sign.

artichoke -heart

matches terms with "artichoke", but not "heart".

Searching only for certain types

You can restrict the type of objects that get returned by the online store search. For example, you can choose to return products, but not pages or articles.

To only return products you can include the type query parameter like this:

/search?q=snowboard&type=product

Or to only search for articles and pages with a certain text in the body:

/search?q=snowboard&type=article,page

Where type can be any of combination of product, article, and page separated by commas. All three types are searched for if none are specified.

You can do this using a hidden field in the search form within search.liquid.

<form method="get" action="/search">
   <input type="hidden" name="type" value="product" />
   ...
</form>

Searching for

artich*

matches terms that begin with "artich".

Searching specific fields

Add a field name with a colon to your search term to narrow your search for that term to the specified field.

For example:

title:artichoke

searches for titles that include the term "artichoke".

Searching for a misspelt word won't work when searching specific fields, since search looks for an exact match.

For example:

title:artichoqe

doesn't yield any results.

The following fields are available to use:

Product fields

body
handle
product_type
tag
title
variants.barcode
variants.sku
variants.title
vendor

Searches for "handle" produce results for exact matches only.

Searching for

handle:artichoke

matches a product with the handle "artichoke", but not a product with the handle "artichoke-hearts".

Page fields

author
body
handle
title

Article fields

author
body
title

Placing a search term between double quotes ("") searches for that exact word or phrase in one of the searchable fields.

For example:

"artichoke hearts"

matches a product with the title "Can of artichoke hearts", but not a product with the title "Canned hearts of artichoke".

Locale

The store primary_locale affects which search version you get. For example, searches that match terms in both their singular and plural forms only works for English locales.

Searches with a Japanese locale

For Katakana, Hiragana, and Kanji, search will match any consecutive sequence of at least 3 characters.

For example, you can find "アップルグリーンラップドレス" by searching for any of the following terms:

ップル

or

アップル

or

ップルグリーンラ

Kanjis can also be found in pairs of two.

Searching for products, pages, and articles

Products, pages, and articles need to have certain settings in place in order to be searchable.

Products

To make a product searchable, do the following steps:

Pages

To make a page searchable, do the following steps:

Articles

To make an article searchable, do the following steps:

Ready to start selling with Shopify?

Try it free