Skip to main content

How to configure search by SKU

Use the steps below to configure search by SKU based on your goals.

If the Search extension can't find a product by SKU, use the steps described below to make this possible.

  1. Make SKU attribute searchable

    Navigate to Stores -> Attributes -> Product Grid -> SKU -> Storefront Properties. Enable the Use in Search and Visible in Advanced Search options.

Audience settings

Use in Search and Visible in Advanced Search options

After this, the SKU attribute will be available for search.

  1. Add SKU to Product index

    Navigate to System -> Search Management -> Search Indexes -> Product Index and add SKU in the Searchable attributes table.

Audience settings

SKU attribute in the product index settings

Set the search weight (from 1 to 10) to define the importance of the SKU attribute for product relevance. Reindex your changes.

  1. Configure Long Tail for SKU with non-alphabetic symbols

    If your product SKU contains dashes or other non-alphabetic symbols, you will need to configure long tail search expressions. This will allow the extension to correctly process complex data and provide relevant search results.

  2. Validate the search result

    To check if product is available in the search by SKU using Search result validator.

tip

The steps described above can also be used to set up search for any custom product attribute.


Use the steps described below to limit the search by SKU.

Exclude search for all products by SKU

  1. Navigate to Stores -> Attributes -> Product, find the SKU attribute, and switch to the Storefront Properties tab where you set the Use in Search option to No.

  2. Reindex the changes after making the modifications.

Exclude search for specific SKUs

  1. Starting from module version v.2.2.63, support for Shared Catalogs and Category Permissions features for Adobe Commerce has been added. Use them to limit search results.

  2. Reindex the changes after making the modifications.

Search by part of the SKU

  1. To search by part of the SKU, use the Long-tail search or Synonyms functionality.

  2. Reindex the changes after making the modifications.