Editing the Sample Query Form

This page tells you how to set up the Index Server sample search form for querying your Web site. After you have copied and renamed the sample files from Query.htm, Query.idq, and Query.htx to Sample.htm, Sample.idq, and Sample.htx, you are ready to start.

To set up the search form
  1. Move Sample.htm to the directory that contains the documents for your Web site.
  2. In this example, assume you have created a virtual directory for your documents and called it /Mysite.

  3. Replace the Index Server logo and title with your own title.
  4. Open Sample.htm in any text editor, and look for the following line:

    
    <IMG SRC ="is2logo.gif" VALIGN=MIDDLE ALIGN=LEFT>
    
  5. Either replace Is2logo.gif with your own .gif file or save your logo as Is2logo.gif. If your logo is located in different virtual directory, you must type the full path to that directory. For example:
  6. 
    <IMG SRC ="/iissamples/issamples/is2logo.gif" VALIGN=MIDDLE ALIGN=LEFT>
    
  7. Replace the title (Sample HTM/IDQ/HTX Search Form) with your own title.
  8. Search for the following line:
  9. 
    <FORM ACTION="query.idq" METHOD="GET">
    
  10. Change this line as follows:
  11. 
    <FORM ACTION="/iissamples/issamples/sample.idq" METHOD="GET">
    

    Because you moved Sample.htm in Step 1, but left Sample.idq in the /IisSamples/IsSamples virtual directory, you must specify the virtual path to Sample.idq.

 

To set up the New Query link
  1. In Sample.htm, look for the following line:
  2. <INPUT TYPE="HIDDEN" NAME="HTMLQueryForm" VALUE="query.htm">
    
  3. Change query.htm to /corpus/sample.htm so that the line now looks like this:
  4. 
    <INPUT TYPE="HIDDEN" NAME="HTMLQueryForm" VALUE="/corpus/sample.htm">
  5. Save Sample.htm, and close the text editor.

© 1997 by Microsoft Corporation. All rights reserved.