Skip to main content
The Main Search template displays search results at /search, showing products, articles, and pages matching the search query with filtering, sorting, and pagination options. Optimized search experience with filters and sorting helps customers quickly find what they’re looking for, reducing friction in the product discovery process. Use this template to create a powerful search experience that handles diverse result types and helps convert search intent into purchases.

Template Settings


Search Result Types

Shopify search returns multiple content types:
Searchable Fields:
  • Product title
  • Product description
  • Product type
  • Vendor
  • Tags
  • SKU
  • Barcode
  • Variant titles
Display:
  • Product grid (standard product cards)
  • Filtering and sorting available
  • Add to cart functionality
  • Quick view (theme-dependent)
Searchable Fields:
  • Article title
  • Author name
  • Article content/body
  • Article excerpt
  • Tags
Display:
  • Article cards with image, title, excerpt
  • Date published
  • Author (theme-dependent)
  • Read more link to full article
  • Uses article card color scheme
If you publish helpful blog content (guides, FAQs), they’ll appear in search, providing value beyond just product listings.
Searchable Fields:
  • Page title
  • Page content/body
Display:
  • Page cards with title and excerpt
  • Link to full page
  • Uses page card color scheme
Common Pages in Results:
  • About Us
  • FAQ
  • Shipping & Returns
  • Size Guide
  • Contact

Search Behavior

Shopify Search Ranking:Shopify ranks results by relevance based on:
  1. Exact title matches (highest priority)
  2. Title partial matches
  3. Product type matches
  4. Tag matches
  5. Description matches
  6. Variant title matches
  7. SKU/barcode matches
Weighting:
  • Published products rank higher than drafts
  • Available products rank higher than sold out
  • Featured products may rank higher
Special Search Operators:Exact Phrase:
  • Use quotes: "blue sneakers"
  • Matches exact phrase only
Multiple Words (AND):
  • Default: blue shoes
  • Finds results with both words
Partial Words:
  • Auto-suggests: sne finds “sneakers”
  • Minimum 3 characters for suggestions
Product Type:
  • Search by type: product_type:shoes
  • Filters to specific product type
When No Matches:
  • “No results for [query]” message displays
  • Suggestions for alternative searches
  • Featured products or collections (theme-dependent)
  • Link to all products
  • Search tips or popular categories
Best Practices:
  • Suggest related products
  • Offer to browse all products
  • Link to popular collections
  • Provide search tips
  • Check for typos (“Did you mean…?”)

Best practices

Improve search accuracy

Optimize product data with descriptive titles, common search terms in descriptions, relevant tags (color, material, style), accurate product type, variant titles, synonyms, and proper SKU naming. Example: Use “Men’s Blue Canvas Low-Top Sneakers” instead of “Classic Sneaker”.

Filtering strategy

Enable filters for large catalogs (50+ products), multiple product categories, price range variety, and different product types. Disable filters for small catalogs (< 30 products), homogeneous products, simple search needs, or mobile-first audience. Filters configured in Shopify Admin Search & Discovery apply to search results.

Mixed result types

Handle products + articles + pages with visual differentiation using different color schemes (scheme-1 for products, scheme-2 for articles, scheme-3 for pages). Group by type or interleave based on relevance, show type labels, use different card styles. Color-coding helps users quickly scan.

Search performance

Lower products_per_page (12-16) for faster initial load, enable “Load More” pagination, optimize product images, limit active filters (3-5 max), use Shopify’s built-in search. For large catalogs (1000+ products), consider search apps with autocomplete, typo correction, and search history.

Mobile search UX

Use filters in drawer (not sidebar) on mobile, large tappable filter/sort buttons, reduced products per page (12), prominent quick filters (price, availability), easy search refinement access, and back to top button for long results. Mobile searchers have specific intent.

Use Cases

Product-Focused Store

Filters enabled, sorting by relevance, products prominently displayed

Content-Rich Store

Mixed results (products + helpful articles), different card colors, articles featured

Simple Catalog

No filters, default sorting, minimal options, 12 products per page

Large Inventory

Full filtering, 24 products per page, load more pagination, sidebar filters

Main Search Banner

Search results page header banner

Predictive Search

Live search suggestions in header search bar

Collection Page

Similar product grid for collection pages

Search Settings

Shopify search configuration in admin

Troubleshooting

Check:
  • Products are published (not draft)
  • Search terms appear in title/description/tags
  • Products not excluded from search
  • No typos in product data
  • Adequate product information filled in
Test:
  • Search by exact product title (should appear)
  • Search by product type (should filter properly)
  • Check in Shopify Admin if product is searchable
Verify:
  • “Enable Filters” checkbox is on
  • Filters configured in Admin → Search & Discovery
  • Search results include products (filters don’t apply to articles/pages)
  • Theme filter settings enabled
Reasons:
  • Sorting set to something other than “Relevance”
  • Customer changed sort order (dropdown)
  • Product availability affecting order (sold out lower)
Fix:
  • Reset to “Relevance” sorting
  • Verify published/available status
  • Check featured product settings
Solutions:
  • Use different color schemes for products vs articles vs pages
  • Add “Type” label to cards (“Product”, “Article”)
  • Organize results by type (group all products together)
  • Consider hiding articles/pages from search (theme-dependent)
Optimize:
  • Reduce products per page (16 or less)
  • Use “Load More” pagination
  • Compress product images
  • Limit filter complexity
  • Consider search app for very large catalogs (1000+ products)
  • Enable lazy loading for images

Quick Summary

  • Purpose: Display search results with products, articles, and pages
  • URL: /search?q=[query]
  • Features: Filtering, sorting, pagination, multi-type results
  • Products Per Page: 8-28 (step of 4, default: 16)
  • Pagination: Traditional or Load More
  • Card Schemes: Separate color schemes for products, articles, pages
  • Filters: Product filters only (not for articles/pages)
  • Sorting: Relevance, best selling, price, alphabetical, date
Search results are automatically generated by Shopify’s search engine. Improve search accuracy by optimizing product titles, descriptions, tags, and types in Shopify Admin → Products.