Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

How to Set Magento 2 Search Weight

Vinh Jacker | 07-07-2017

How to Set Magento 2 Search Weight

Search Weight is the tool that supports sellers in allocating a weight for product attributes when they want these attributes to be preferred to appear in search results over other attributes.

For example, two attributes are Color and Brand. The Color with a search weight of 1 and the Brand with a search weight of 2. When the customers search the word “ white”, the result returned would be a list of products with a Color attribute value of “white” and the Brand includes the word “white” doesn’t appear in this result. That means the color attribute has a higher weight than the Brand attribute.

Explore Mageplaza Ajax Search module

How to set Search Weight in Magento 2

Step 1: Access to configuration

From the Admin sidebar, click Store. In the Attributes column, select Product.

Step 2: Specify the attribute to edit

Choose the attribute you want to allocate a weight in the list, click to open this record in edit mode.

Step 3: Configuration

Select Storefront Properties in the ATTRIBUTE INFORMATION column.

  • To contain the attribute in search queries, click Yes in Use in the Search field.
  • To install the search weight of the attribute, choose the number from 1 to 10 in the Search weight field. The lowest value is 1 and the highest is 10. If you don’t choose any value, all the attributes have a search weight of 1.

Weight Search

Step 4: Save the changes

Select Save Attribute to complete.

THINGS TO REMEMBER

  • Priority for attributes is from 1 to 10 and the highest value is 10.
  • When the product attributes aren’t allocated the weight, the value of search weight is 1.

Related Posts:

Jacker

With over a decade of experience crafting innovative tech solutions for ecommerce businesses built on Magento, Jacker is the mastermind behind our secure and well-functioned extensions. With his expertise in building user-friendly interfaces and robust back-end systems, Mageplaza was able to deliver exceptional Magento solutions and services for over 122K+ customers around the world.



Related Post

Website Support
& Maintenance Services

Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

Get Started
mageplaza services