Help > Web Development > Object Reference > Object Reference > ISYSSearch > QueryText Property
<a name="kanchor539"></a>ISYSSearch:QueryText Property
QueryText supports multiple formats of query and is dependant on QueryType. This will generally be query text, but can also be a ISYSDocument to support FindSimilar.

Syntax
[VBScript]
 property ISYSSearch.QueryText as variant
[C#]
System.Object ISYSSearch.QueryText {get;put;}
[ColdFusion/Java]
System.Object ISYSSearch.QueryText() throws ComException;
void ISYSSearch.set_QueryText( System.Object value );
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 %>