Help > Web Development > Object Reference > Code Samples > ASP > Executing a
<a name="kanchor586"></a>Executing a Query Within
Demonstrates executing a Query Within. This allows you to narrow a previously executed search by providing new search terms.

<% ' 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, SearchID is the ID of a previously executed search search.QuerySource = Request("SearchID") ' Prepare the search text, fetch the value form the ASP request search.QueryText = Request("Query") ' Execute the search set results = search.Execute %>