Whether groupings display as a single product with information about one SKU or individual products in the Search Testing results list depends on the usage of the sub-item Results input. For more information about setting these properties, see the ATG Search Query Guide.

If your site displays groupings and you’d like to replicate your site behavior in a search test, follow these steps:

  1. Locate the Query Request component by checking the searchRequest property of the /atg/commerce/search/testing/SearchTestingQueryFormHandler for the name and location of the Query Request component. The default is /atg/commerce/search/catalog/QueryRequest.

  2. Set the following Query Request properties:

    sorting=property
    sortProperty=string:$repositoryId:1

  3. Configure the responseNumberSettings map property to return groupings in the way you prefer:

    • prop determines the maximum number groupings to return. Keep in mind that 10 results display in the first page of the result list.

    • perProp establishes the maximum number of SKUs per product.

    For example, the following settings return a maximum of 100 groupings each containing no more than 20 SKUs:

    QueryRequest.responseNumberSettings=prop=100,perProp=20

For more information on grouping and setting up grouping, see the Standard Query Results section of the Standard Query chapter in the ATG Search Query Guide.