搜索你的e

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

Search behavior

Shopify applies a number of behaviors to search terms to increase the number of relevant results.

Singular and plural search terms

The online store search tries to match terms in both their singular and plural forms.

Searching forpuppiesmatches results containing "puppy" or "puppies".

Treating singular and plural terms as equivalent is an example of stemming, where a word is mapped to its common lemma (stem). Shopify's stemming also takes into account the common stem of different words.

Searching forbody:leggingsmatches results containing "leg" or "leggings".

If you want to search for a word based on partial pattern matching, then useprefix search.

Typo tolerance

The online store search includes typo tolerance, which finds correct matches for search terms that contain typos.

Search results include matches that differ from the search term by 1 letter or that have 2 letters in a different order. The first 4 letters of a search term need to be entered correctly for typo tolerance to take effect.

For example, search forchocollate, will return results that havechocolateorchocolatesin the title or description.

Typo tolerance isn't applied when searches are usingsearch syntaxin the query.

Typo tolerance isn't applied on all fields when creating search results. For example,chocollatewould not match on any product tags of blog post tags ofchocolate. The following resource fields support typo tolerance:

Resource type Supported fields
Products
  • title
  • product_type
  • variants.title
  • vendor
Pages
  • author
  • title
Blog posts
  • author
  • title

Search syntax

Search syntax determines how search terms are treated when Shopify is searching for results.

Using AND, OR and NOT operators

AND

Searching for results with theANDoperator between search terms returns results when all search terms are in the result.

By default, all search terms are treated as havingANDbetween them. Searching forartichoke heartsorartichoke AND heartsboth yield results containing both "artichoke" and "hearts". Joining operators aren't necessary.

OR

Searching for results with theORoperator between search terms returns results when any search term is a result.

Searching forartichoke OR heartsyields 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 (-).

Searching forartichoke -heartmatches terms with "artichoke", but not "heart".

Prefix search will return results where the search term matches the beginning of other terms in results. Prefix search occurs automatically on all searches.

Searching forartichmatches terms that begin with "artich", like "artichoke".

This also works on the last term of a search. Searching forartichoke heamatches terms that begin with "artichoke hea".

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

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

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, searching fortitle:artichokesearches 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, searching fortitle:artichoqedoesn't yield any results.

Depending on the resource you're searching for (product, page, blog post), results can be based on different searchable properties.

Resource Searchable properties
Products
  • body
  • product_type
  • tag
  • title
  • variants.barcode
  • variants.sku
  • variants.title
  • vendor
Pages
  • author
  • body
  • title
Blog posts
  • author
  • body
  • tag
  • title

Making products, pages, and blog posts searchable

Products, pages, and blog posts need to have certain settings in place in order to be returned in search results in your Online store.

Products

To make a product searchable, do the following steps:

Pages

To make a page searchable, do the following steps:

Blog posts

To make a blog post searchable, do the following steps:

You can customize your search results with theSearch & Discovery appfrom Shopify. The app provides a number of search features and settings that change the behavior of your online store search.

For more advanced customizations, you can edit your theme code to change the how search results are requested. Learn more about customizing atShopify.dev.

Store locale affect on search behavior

The store'sprimary localeaffects which search behaviors you get.

Supported languages

The following table indicates which search behaviors are provided for the supported languages:

Language Typo tolerance Search stemming Trigram
English
French
Spanish
Portuguese (Brazil)
German
Dutch
Italian
Japanese
Can supportKatakana, Hiragana, and Kanji
Danish
Swedish
Portuguese (Portugal)
Finnish
Norwegian (Bokml)
Turkish
Romanian
Hungarian
Russian
Polish
Czech
Greek
Icelandic
Lithuanian
Slovenian
Slovak
Bulgarian
Vietnamese
Croatian
Indonesian
Latvian
Estonian
Serbian
Ukrainian
Catalan
Norwegian (Nynorsk)
Faroese
Portuguese
Albanian
Bosnian
Afrikaans
Macedonian
Armenian
Serbo-Croatian
Latin
Welsh
Gaelic
Moldovan

Japanese locale

The Japanese local supportssearch stemmingand Trigram search, but doesn't supporttypo tolerance.

Trigram

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:

  • ップル
  • アップル
  • ップルグリーンラ

Kanjis can also be found in pairs of two.

Ready to start selling with Shopify?

Try it free