Magento Commerce, 2.0.11

Magento 2.0.18 is the final 2.0.x release. After March 2018, Magento 2.0.x will no longer receive security patches, quality fixes, or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento.

Weighted Search

Product attributes that are enabled for catalog search can be weighted to give them a higher value in search results. Attributes with a greater weight are returned before those with a lower weight. For example, if there are two attributes in the system, “color” with a search weight of 1 and “description” with a search weight of 3. A search for the word “red,” returns a list of products with a color attributeA characteristic or property of a product; anything that describes a product. Examples of product attributes include color, size, weight, and price. value of “red,” but does not return products with descriptions that contain the word “red.” In this example, the color attribute has a greater weight than the description attribute.

Search Weight

To set the search weight properties of an attribute:

1. On the AdminThe password-protected back office of your store where orders, catalog, content, and configurations are managed. sidebarThe right or left column of a two-column page layout., tap Stores. Then under Attributes, choose Product.
2. Find the attribute in the list, and open in edit mode.
3. In the panel on the left, choose Storefront Properties. Then, do the following:
a. To include the attribute in search queries, set Use in Search to “Yes.”
b. To establish the search value of the attribute, set Search Weight to a number from 1 to 10, where 10 has the highest priority. If no value is entered, all attributes have a search weight of 1.
c. To include the attribute as a field on the Advanced Search form, set Visible in Advanced Search to “Yes.”
4. When complete, tap Save Attribute button.