KeywordQuery.TrimDuplicatesKeepCount property

Gets or sets the number of duplicates to keep, if duplicates are returned in the search results.

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

Syntax

'Declaration
Public Property TrimDuplicatesKeepCount As Integer
    Get
    Set
'Usage
Dim instance As KeywordQuery
Dim value As Integer

value = instance.TrimDuplicatesKeepCount

instance.TrimDuplicatesKeepCount = value
public int TrimDuplicatesKeepCount { get; set; }

Property value

Type: System.Int32
The number of duplicate search results to keep.

Remarks

For more information, see Customizing search results in SharePoint 2013.

See also

Reference

KeywordQuery class

KeywordQuery members

Microsoft.Office.Server.Search.Query namespace