Keyword mapping to extend search results

This technique uses an attribute to create a keyword-based association between two products so that a search for either product returns results for both products. You can use keyword mapping to promote a product in search results where it otherwise would not appear.

Search results with keyword mapping

The following example uses keyword mapping based on SKU. When either SKU is entered in the search box, both products appear in the results. The SKUs of the following configurable products are mapped, rather than the SKUs of product variations:

  • Montana Wind Jacket (MJ03)
  • Chaz Kangaroo Hoodie (MH01)

Step 1: Create an attribute

  1. In the Products list, open the Montana Wind Jacket (MJ03) in edit mode.

  2. In the upper-right corner, click Add Attribute.

  3. On the Select Attribute page, click Create New Attribute.

  4. Complete the attribute properties as follows:

    Attribute Properties

    • Attribute Label - Search Keywords
    • Catalog Input Type for Store Owner - Text Field

    Advanced Attribute Properties

    • Add to Column Options - Yes (default)
    • Use in Filter Options - Yes (default)

    Storefront Properties

    • Use in Search - Yes
    • Visible on Catalog Pages in the Storefront - No
    • Used in Product Listings - No
  5. When complete, click Save Attribute.

    The attribute is added to the attribute set for the product.