Help > Web Development > Object Reference > Object Reference > ISYSSearch > QuerySource Property
<a name="kanchor538"></a>ISYSSearch:QuerySource Property
QuerySource specifies the data collection that is to be searched. This can either be a path to an index, a result list, concept node.

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

Remarks
The QuerySource object is most versatile properties in ISYS:web.dk (admin). QuerySource can take a multitude of different data and object values to execute the search.

The following table indicates the resulting query source for each data type:

Data TypeResulting Query
stringSemicolon separated list of indexes to search
longSearches within the documents contained in the result list
ISYSIndexSearches the ISYSIndex
ISYSResultListSearches within the documents contained in the result list
ISYSConceptNodeSearches within the results of the concept node