Condividi tramite


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