Specifying a Catalog in ASP Code (Ixsso Query)

Source: Internet
Author: 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 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:




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.