Creating Query Helper Objects

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

The Query Helper API provides the Query and Utility objects for creating and managing queries to the OLE DB Provider for Indexing Service. An application can use these objects along with an ADO Recordset object (see Creating ADO Objects) that represents the resulting records from a query.

The following table shows how to declare a Query object with either early or late binding.

Object Early Binding Late Binding
Query
Dim objQuery as IXSSO.Query
Or
Reference to Cisso Type Library
Dim objQuery as Object

 

You subsequently can use either of the following statements to create the Query object.

Set objQuery = New IXSSO.Query
Set objQuery = CreateObject("IXSSO.Query")

The following table shows how to declare a Utility object with either early or late binding.

Object Early Binding Late Binding
Utility
Dim objUtility as IXSSO.Util
Or
Reference to Cisso Type Library
Dim objUtility as Object

 

You subsequently can use either of the following statements to create the Utility object.

Set objUtility = New IXSSO.Util
Set objUtility = CreateObject("IXSSO.Util")