Skip to content
ZenoCloud Call

How to Set Magento 2 Search Weight?

Guide to configuring search weights for products in Magento 2 to improve search results.

First written in 2022. Things may have changed since.

Search weight determines how prominently products appear in search results. Learn how to optimize it in Magento 2.

What is Search Weight?

Search weight is a value (0-100) that determines:

  • Result ranking importance
  • Which attribute matches first
  • Relevance of search results
  • Product visibility in searches

Attributes You Can Weight

  • Product name (highest priority)
  • SKU
  • Description
  • Short description
  • Custom attributes
  • Meta keywords

Configuring Search Weight

  • Go to Stores > Attributes > Product
  • Click on attribute to edit
  • Expand "Search Properties" section
  • Set "Search Weight" value (1-100)
  • Save attribute

Weight Recommendations

  • Product Name: 6-8 (highest)
  • SKU: 4-5
  • Custom SKU: 3-4
  • Description: 2-3
  • Short Description: 1-2
  • Other attributes: 1

Search Weight Best Practices

  • Give highest weight to product names
  • Weight unique identifiers higher
  • Balance between attributes
  • Test search results after changes
  • Monitor search quality
  • Adjust based on user behavior

Examples

Electronics Store

  • Product name: 8
  • Brand: 6
  • Model number: 5
  • Description: 2

Fashion Store

  • Product name: 8
  • Size/Color: 5
  • Material: 4
  • Designer: 6

Testing Search Results

  • Search for popular products
  • Check result relevance
  • Test partial matches
  • Verify top results
  • Adjust weights if needed

Advanced Search Configuration

Additional options:

  • Minimum query length
  • Search engine (MySQL, Elasticsearch)
  • Synonyms
  • Stop words
  • Boost factors

Monitoring Search Performance

  • Track search keywords
  • Monitor no-result searches
  • Analyze user behavior
  • Review popular searches
  • Adjust weights based on data
Next step

Run Magento on infrastructure built for it.

See Magento hosting

Related services

Browse all field notes
Quote request

What should we quote?

Your name, number and what you need. We reply within one business day.