Specifying a Catalog in ASP Code (IXSSO Query)

來源:互聯網
上載者:User
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 :




相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.