Search Results

This topic describes standard search functionality that might differ from Live Search.

The Search Results list includes all products that match the search criteria entered in the Quick Search box or the Advanced Search form. Every product list in the catalog has essentially the same controls. The only difference is that one is the result of a search query, and the other difference is the result of navigation.

The results can be formatted as either a grid or list and sorted by a selection of attributes. Pagination controls appear if there are more products than fit on the page. Use these controls to move from one page to the next. The number of records per page is determined by the Catalog Frontend configuration. For more information, see Product Listings.

With ElasticSearch, there is no out-of-the-box support for search by the suffix. For example, search by SKU may not return the expected result if the keyword contains only the end part of the SKU.

Search Results with Pagination Controls

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 wouldn’t 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. Note that 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 a new attribute

  1. In the Catalog Products grid, 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.

Step 2: Map the first product

  1. On the product settings page, scroll down and expand the Attributes section.
  2. In the Search Keywords field, enter the SKU MH01 that is to be mapped to this product.

    You can enter multiple SKUs separated by a space in the Search Keywords field. In this example, only one is entered.

    Attributes section with search keyword

  3. When complete, click Save.
  4. Go to System > Tools > Cache Management and refresh the Page Cache.

Step 3: Map the second product

  1. In the Catalog Products grid, open the Chaz Kangaroo Hoodie (MH01) in edit mode.
  2. Scroll down and expand the Attributes section.
  3. In the Search Keywords field, enter the SKU for the other product, MJ03.
  4. Click Save.
  5. Go to System > Tools > Cache Management and refresh the Page Cache.

Step 4: Test it in the storefront

  1. Go to the storefront and enter MJ03 in the Quick Search box.
  2. Verify that both products are returned in the search results list.