Microsoft KB Archive/238791: Difference between revisions
m (Text replacement - "<" to "<") |
m (Text replacement - ">" to ">") |
||
Line 69: | Line 69: | ||
<pre class="codesample">set Q = Server.CreateObject("ixsso.Query") | <pre class="codesample">set Q = Server.CreateObject("ixsso.Query") | ||
set util = Server.CreateObject("ixsso.Util") | set util = Server.CreateObject("ixsso.Util") | ||
Q.CATALOG="<catalogname | Q.CATALOG="<catalogname>" | ||
Q.Query = CompSearch | Q.Query = CompSearch | ||
Q.SortBy = "rank[d]" | Q.SortBy = "rank[d]" |
Revision as of 09:43, 21 July 2020
Article ID: 238791
Article Last Modified on 8/18/1999
APPLIES TO
- Microsoft Index Server 2.0
This article was previously published under Q238791
SYMPTOMS
On a server with multiple catalogs, any query page that is not querying the default catalog needs to specify in its code the catalog it is querying against. This article provides examples of how to specify the catalog within ASP files that are using the IXSSO object to query Index Server.
RESOLUTION
NOTE: This example uses the IXSSO object and is based on Query.asp, which is installed by default with the Index Server.
In the Query.asp page, find the section that 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 in the ASP page, add a line so that 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 that you add will have a value equal to the name of your catalog as it appears in the Microsoft Management Console (MMC) for Index Server.
Keywords: kbprb kbpending KB238791