Help > Web Development > Object Reference > Object Reference > ISYSAsp > NewSearch Method
<a name="kanchor245"></a>ISYSAsp:NewSearch Method
Creates a new search object that is used to perform advanced ISYS searching

Syntax
[VBScript]
function ISYSAsp.NewSearch as ISYSSearch
[C#]
IISYSSearch  ISYSAsp.NewSearch();
[ColdFusion/Java]
IISYSSearch  IISYSAsp.NewSearch() throws ComException;
Examples
[VBScript]
<% ' This sample demonstrates 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