Partager via


SearchServiceApplicationProxy.GetTopQueryStringsForUrl Method

Gets a specified number of top query strings used as a result when the user clicks a specified URL.

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

Syntax

'Declaration
Public Function GetTopQueryStringsForUrl ( _
    url As String, _
    topCount As Integer _
) As String()
'Usage
Dim instance As SearchServiceApplicationProxy
Dim url As String
Dim topCount As Integer
Dim returnValue As String()

returnValue = instance.GetTopQueryStringsForUrl(url, _
    topCount)
public string[] GetTopQueryStringsForUrl(
    string url,
    int topCount
)

Parameters

  • url
    Type: System.String

    The URL that identifies a crawled item.

  • topCount
    Type: System.Int32

    The number of top query strings to return.

Return Value

Type: []
The query strings that are used as a result when a user clicks a specified URL.

Exceptions

Exception Condition
Exception

An error occurred during application execution.

Remarks

This method gets the top query strings used as a result when a user clicks a specified URL. Each crawled item is identified by a uniform resource identifier (URI). The query strings are stored in descending order by the frequency of occurrence.

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace