SearchServiceApplication.SetQuerySuggestionEnabled method
Enables or disables query suggestions for the current SearchObjectOwner.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub SetQuerySuggestionEnabled ( _
owner As SearchObjectOwner, _
fEnabled As Boolean _
)
'Usage
Dim instance As SearchServiceApplication
Dim owner As SearchObjectOwner
Dim fEnabled As Boolean
instance.SetQuerySuggestionEnabled(owner, _
fEnabled)
public void SetQuerySuggestionEnabled(
SearchObjectOwner owner,
bool fEnabled
)
Parameters
owner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
fEnabled
Type: System.Booleantrue if query suggestions are enabled; otherwise false.
Implements
ISearchSiteAdministrationServiceApplication.SetQuerySuggestionEnabled(SearchObjectOwner, Boolean)
See also
Reference
SearchServiceApplication class
SearchServiceApplication members
Microsoft.Office.Server.Search.Administration namespace
IsQuerySuggestionEnabled