Specifying a Catalog in ASP Code (Ixsso Query)
--------------------------------------------------------------------------------
The information in this article applies to:
Microsoft Index Server version 2.0
--------------------------------------------------------------------------------
Symptoms
On a server with multiple catalogs, any query page this is not querying the default catalog needs to specify in its code t He catalog the it is querying against. This is article provides examples to specify the catalog within ASP files, which are using the Ixsso object to query Ind Ex Server.
Resolution
Note:this example uses the Ixsso object and is based on query.asp, which was installed by default with the Index Server.
In the Query.asp page, find the "section" looks like the following:
Set Q = Server.CreateObject ("Ixsso.") Query ")
Set util = Server.CreateObject ("Ixsso. Util ")
Q.query = CompSearch
Q.sortby = "Rank[d]"
Q.columns = "DocTitle, vpath, filename, size, write, characterization, rank"
Q.maxrecords = 300
To specify a catalog into the ASP page, add a line so this section appears follows:
Set Q = Server.CreateObject ("Ixsso.") Query ")
Set util = Server.CreateObject ("Ixsso. Util ")
Q.catalog= "<catalogname>"
Q.query = CompSearch
Q.sortby = "Rank[d]"
Q.columns = "DocTitle, vpath, filename, size, write, characterization, rank"
Q.maxrecords = 300
The Q.Catalog line so you add'll have a value equal to the name of your Catalog as it appears in the Microsoft Managem ENT Console (MMC) for Index Server.
Additional Query Words:
Keywords:
Issue TYPE:KBPRB
Technology: