Skip to content
ZenoCloud
Applications

How to Set Magento 2 Search Weight?

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

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

Apply the lesson to a real environment.

Browse all field notes
Quote request

What should we quote?

Describe the configuration or problem, location and timing.

Add company or phone
Replies go to your work email. Add a phone number only if you want a call.