Share via


SearchExecutor class

Runs queries against a search server.

This class was introduced in SharePoint 2013 to run search specific features, like search queries, against the backend.

Inheritance hierarchy

System.Object
  Microsoft.Office.Server.Search.Query.SearchExecutor

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SearchExecutor
'Usage
Dim instance As SearchExecutor
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SearchExecutor

Remarks

Use this class in place of Execute().

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SearchExecutor members

Microsoft.Office.Server.Search.Query namespace

Other resources

Using the SharePoint 2013 search Query APIs