Help > Web Development > Object Reference > Code Samples > ASP > Executing a search
<a name="kanchor587"></a>Executing a search
Demonstrates executing a command based query against an index.

<% ' Create the ISYS engine, you could use a cached copy set isys = Server.CreateObject("ISYS.ISYSAsp") ' Create a new search object set search = isys.NewSearch ' Prepare the search source search.QuerySource = "c:\index" ' Prepare the search text search.QueryText = "Manager" ' Prepare the sort order search.Sort = "RELEVANCE" ' Set the maximum number of items search.MaxRows = 1000 ' Execute the search set results = search.Execute ' Save the result list to disk searchId = results.Save %>