Specifying a Catalog in ASP Code (IXSSO Query)

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 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.

Additional query words:

Keywords :
Issue type : kbprb
Technology :

时间: 2024-09-15 21:42:04

Specifying a Catalog in ASP Code (IXSSO Query)的相关文章

用ASP建立网站地图

网站地图|网站地图 为了不使用户一页一页地找寻所需信息,大多数大型Web站点在突出的地方都有一个搜索特性,在文本框内输入几个单词,于是就有了想要看的页面.你可能得不到完全符合需要的页面,但是可以添加更多的关键字,细化搜索.本文通过IIS内置的Index Server服务,介绍如何建立和使用网站地图. 配置Index Server在执行Web服务器上的搜索之前,首先必须创建至少一个索引,并遵循以下步骤完成这项工作. ⒈启动Windows 2000 Server服务器上的索引.缺省情况下选择图标位于

实用技巧:用ASP建立网站地图

技巧|网站地图 为了不使用户一页一页地找寻所需信息,大多数大型Web站点在突出的地方都有一个搜索特性,在文本框内输入几个单词,于是就有了想要看的页面.你可能得不到完全符合需要的页面,但是可以添加更多的关键字,细化搜索.本文通过IIS内置的Index Server服务,介绍如何建立和使用网站地图. 配置Index Server在执行Web服务器上的搜索之前,首先必须创建至少一个索引,并遵循以下步骤完成这项工作. ⒈启动Windows 2000 Server服务器上的索引.缺省情况下选择图标位于管理

ASP之对象总结

对象 ADO对象(太常用了):ConnectionCommandRecordSetRecordStream ASP支持的对象太多了,你可以自己写COM组件,下面是我们经常使用的:Server.CreateObject("Scripting.FileSystemObject")Server.CreateObject("Scripting.Dictionary") HashTableServer.CreateXObject("Word.Application&

使用索引服务器 - 创建ASP页面

创建|服务器|索引|页面 创建ASP页面 在ASP页面上一切都变得非常酷.你用表单中的值来驱动对索引服务器进行查询的对象. 整个过程是这样的: ◆ 打开记录集.◆ 用标准ADO 方法,一步步地走过记录集. <%"Create a Query object, initialize it using"SetQueryFromURL, and dump the object state "set the query objectSet objQuery = Server.Cr

用ASP实现对Web搜索引擎Index Server的访问

摘要:Index Server是专门为企业Web网站设计的专业搜索引擎,传统的访问方法HTML/IDQ/HTX由于固有的特性,缺乏灵活性.本文介绍用ASP实现对Index Server访问的两种方法,以及如何实现复杂查询,和对查询结果的控制. 关键字:Index Server ASP ADO  在电子商务方兴未艾的今天,企业上网不但是为了展示企业形象,提高知名度:也意味着无穷的商机与财富.而内部网Intranet则为企业带来了全新的沟通方式和管理理念.因此构建企业Web站点已经排上了许多企业信息

ASP中使用组件搜索

    MicroSoft的ASP(Active Server Page)技术极大的方便了在网络中对于数据库的访问,而且由于ASP不同于CGI需要那么多的请求(减少了服务器的资源占用),以及ASP同Windows NT .2000的结合使得ASP技术被广泛的应用于今日的Internet,然而不知道你仔细的想过没有!ASP除了利用ADO对数据库的访问和其他几个内置组件的利用外,就不能作其他什么的了,相对于perl,php等程序,ASP的功能看起来就非常简单,而且功能缺乏:但是老比毕竟是老比,他给大

在ASP.NET中的变量数值管理--看了这个我基本上对原来的REQUEST.FORM的方法传递变量绝

Web form pages are HTTP-Based, they are stateless, which means they don't know whether the requests are all from the same client, and pages are destroyed and recreated with each round trip to the server, therefore information will be lost, therefore

再贴一遍,利用global.asp定时执行ASP

定时|执行 Using the global.asa to schedule ASP code execution.Have you ever had some asp code that needed to execute every once in a while but, you just didn't know how to do it. There is a solution that doesn't involve running any scheduling or scriptin

利用global.asp定时执行ASP

定时|执行 Using the global.asa to schedule ASP code execution.Have you ever had some asp code that needed to execute every once in a while but, you just didn't know how to do it. There is a solution that doesn't involve running any scheduling or scriptin