Oracle ATG Web Commerce Search returns information associated with the index item of each statement result. This information includes the related document sets of the index item. By default, Search returns all related document sets, but the number and type of the returned item sets can be controlled by this attribute:

<query maxRelatedSets="max" relatedSets="path,path,..."

The max value is the maximum number of related sets to return. A value of 0 means no related item set information is returned in the response. The default is 0.

Note that even if the value is 0, the physical document set is always returned:

<document docset="">

The path values are item set paths (for example, /Topics/Product) which act as constraints on what type of related sets to return. Only related sets that are descendents of one of the path values are returned. The default value is an empty string, which means that the related sets are unconstrained.