用户登录  |  用户注册
首 页商业源码原创产品编程论坛
当前位置:PB创新网文章中心编程技巧Delphi

Specifying a Catalog in ASP Code (IXSSO Query)

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2009-03-16 20:17:26
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 :


Tags:

作者:佚名

文章评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
PB创新网ourmis.com】Copyright © 2000-2009 . All Rights Reserved .
页面执行时间:1,562.50000 毫秒
Email:ourmis@126.com QQ:2322888 蜀ICP备05006790号