Home Up

Search Methods

Overlooking the world of SBS2003 and Office Systems 2003

 

 

 

There are three 'methods' of doing a search against an Index Server catalog:

bulletThe fast static query, using the Internet Data Query (IDQ), HTML, and HTX files to perform fast and configurable  searches without writing ASP code.
bulletAn ASP query, using the new Intrinsic Query and Utility objects of the current implementation of Index Server's Active Server Pages, to return a recordset.
bulletAn ActiveX Data Objects (ADO) query, using Connection and Command objects to return a recordset.

THE STATIC QUERY

The material for this topic can be found at:

http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnproasp2/html/insideidqscript.asp?frame=true

 

What is somewhat confusing is where does one find the IDQ parameters, that one edits, and the HTX file, which also may have to be edited.  The IDQ is the form that appears on the search page that FrontPage creates from its template.   If you select the form control on the search form, and click the HTML button on the bottom, you will see the IDQ parameters highlighted in the code.  They are enclosed in webbot tags.  They are not quite like what the book shows as the IDQ parameter list, and it might take some guessing how to put things in correctly.  It is better to use the property panel of the Form, itself, to select the parameters to use.  You don't get quite the range of parameter settings as the raw IDQ parameters imply, but the form template is certainly easier to use.  

When you use a search page created by FrontPage from a template, the HTX file is automatically created and stuffed into one of the hidden folders on your web.  Go to the root of your subweb, and look for the _derived folder.  All the HTX files are there with enough of a name for you to relate them to your template page.  Edit that page in Notepad, or your favorite text editor, to customize the parameters of the display.

 

THE ASP QUERY

The material for this topic can be found at:

http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnproasp2/html/objectbasedsearches.asp?frame=true

 

THE ADO QUERY

The material for this topic can be found at:

http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnproasp2/html/connectingtoindexserver.asp?frame=true

 

WHERE TO GET THE SAMPLE CODE

The URLs pointing to text on this page are pointing to pages in the MSDN Online Library.  Specifically, chapter 19 of a partial book that was ultimately published by Wrox Press.  Wrox probably did not include a CD with the book, but has a downloadable file of the examples on their website.  You can find it at:

http://www.wrox.com/Consumer/Store/Download.asp?Category=Consumer

Select the ASP Programmers Reference title, or perhaps the Resource title.

 

 

 

 

Send mail to Hollis@outlookbythesound.com with questions or comments about this web site.
Last modified: October 31, 2003