In some situations, you may not want your sites to display all available facets and selections. For example:

You can restrict the set of facets and selection values that Oracle ATG Web Commerce Search returns by setting the following properties on the /atg/commerce/search/catalog/QueryRequest component:

refineTop
The maximum number of values or ranges to return for a facet (configured value: 5). If the number of available values is greater than this number, only the top n values (where refineTop=n) in terms of sort order are returned. The sort order for a facet’s selection values is specified when the facet is defined in Oracle ATG Web Commerce Merchandising; you can choose to sort in descending order of the number of results in the selection, so that only the facet selections with the fewest results are eliminated.

refineMin
The minimum number of results that a facet value or range must have for that value or range to be returned. The configured value is 0, which means even facet values with no results are returned. For example, if a Size facet has values of Small, Medium, and Large, selections are displayed for all three values, even if the results include no items whose size is Small. Set the value of this property to 1 to return only facet values that include results.

refineMinVal
The minimum number of selection values or ranges that a facet must have in order for that facet to be returned. The default value is 1, which means all facets are returned, since a facet always has at least one selection value or range. Set the value of this property to 2 eliminate facets for which all results have the same value. For example, if every result has color=red, setting refineMinVal to 2 prevents Oracle ATG Web Commerce Search from returning the Color facet.