Help > Web Development > Object Reference > Object Reference > ISYSSearch > Execute Method
<a name="kanchor534"></a>ISYSSearch:Execute Method
Execute the search object and return a result list.

Syntax
[VBScript]
function ISYSSearch.Execute as ISYSResultList
[C#]
IISYSResultList  IISYSSearch.Execute();
[ColdFusion/Java]
IISYSResultList  IISYSSearch.Execute() throws ComException;
Examples
[VBScript]
<% ' This sample demostrates creating a new ISYSSearch object and specifying the ' QueryText, QuerySource and QueryType and executing it to get the result list. ' Create the new ISYSSearch object dim ISYSSearch : set ISYSSearch = ISYSEngine.NewSearch ' Specify the Index to Search ISYSSearch.QuerySource = "c:\indexes\documents" ' Specify the Query Text ISYSSearch.QueryText = "Policies" ' Specify the Query Type ISYSSearch.QueryType = isysQueryISYS ' Execute the Search dim SearchResults : set SearchResults = ISYSSearch.Execute %>
See Also