ManagedPropertyFilterGenerator.CollapseOnCustomFilter method

Collapses the results statistics based on the custom filters defined in the specified filter category.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function CollapseOnCustomFilter ( _
    fc As FilterCategory, _
    filterValueCounts As Dictionary(Of String, RefinementDataElement) _
) As Dictionary(Of String, RefinementDataElement)
'Usage
Dim instance As ManagedPropertyFilterGenerator
Dim fc As FilterCategory
Dim filterValueCounts As Dictionary(Of String, RefinementDataElement)
Dim returnValue As Dictionary(Of String, RefinementDataElement)

returnValue = instance.CollapseOnCustomFilter(fc, _
    filterValueCounts)
public Dictionary<string, RefinementDataElement> CollapseOnCustomFilter(
    FilterCategory fc,
    Dictionary<string, RefinementDataElement> filterValueCounts
)

Parameters

Return value

Type: System.Collections.Generic.Dictionary<String, RefinementDataElement>
Key/value pairs that contain refinement data elements that contain the results statistics after collapsing.

Remarks

This method recalculates the counts of the result data returned by the custom filters in the filter category.

See also

Reference

ManagedPropertyFilterGenerator class

ManagedPropertyFilterGenerator members

Microsoft.Office.Server.Search.WebControls namespace