KeywordQuery.EnableUrlSmashing property

Applies to: Microsoft SharePoint Server 2010 search
Gets or sets a Boolean value that specifies whether URL smashing is enabled.

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

Syntax

'Declaration
Public Property EnableUrlSmashing As Boolean
    Get
    Set
'Usage
Dim instance As KeywordQuery
Dim value As Boolean

value = instance.EnableUrlSmashing

instance.EnableUrlSmashing = value
public bool EnableUrlSmashing { get; set; }

Property value

Type: System.Boolean
true if URL smashing is enabled; otherwise, false.

Remarks

URL smashing is the process of concatenating terms in the user’s query to create a URL. For example, if you query for “windows mobile” and there is a site with the name http://windowsmobile, that site will be returned as your first result.

See also

Reference

KeywordQuery class

KeywordQuery members

Microsoft.Office.Server.Search.Query namespace