Limiting the number of results per attribute

Another way to limit value search results is to specify the number of values to return for each record attribute, using the MaxPerProperty attribute of ValueSearchConfig.

To set the number of attribute values to return for each attribute, use the MaxPerProperty attribute with an integer that specifies the number of values to return per attribute.

For example, the following query:
<ns:ContentElementConfig 
...
MaxPerProperty="2">
<ns:SearchTerm>Handlebars</ns:SearchTerm>
<ns:RestrictToProperties>
...
</ns:ContentElementConfig>
returns 2 results for each attribute.