home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / HIWIndexServer.asp < prev    next >
Text File  |  1997-11-01  |  6KB  |  143 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <!--META TAGS ARE RECOMMENDED FOR THE SEARCH ENGINE-->
  5. <META NAME="DESCRIPTION" Content="How It Works Page">
  6. <META NAME="KEYWORDS" CONTENT="help, code, source code, questions, explanation, index, content">
  7. <META NAME="GENERATOR" CONTENT="Microsoft Visual InterDev 1.0">
  8. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
  9. <!--END META TAGS-->
  10.  
  11. <TITLE>How the Content Indexing Pages Work</TITLE>
  12. </HEAD>
  13.  
  14. <BODY  BGCOLOR=#FFFFFF TOPMARGIN=0 LEFTMARGIN=0 ALINK=#23238E VLINK=#808080 LINK=#FFCC00>
  15. <BASEFONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=2>
  16.  
  17. <!--Change link color on mouseover
  18.     Only if running Internet Explorer 4.0 or later -->
  19. <!--#include file=../libHighlight.inc-->
  20. <!--#include file=../libGlobalFuncs.inc-->
  21.  
  22. <!--BEGIN TOP TABLE HOLDING GRAPHIC, NAVIGATIONAL LINK, AND MAIN CONTENT-->
  23. <TABLE WIDTH="100%" HEIGHT="100%" CELLPADDING=0 CELLSPACING=0  BGCOLOR="#000000" BORDER=0>
  24.     <TR>
  25.         <TD BGCOLOR="#000000" ALIGN=CENTER VALIGN=TOP WIDTH=170>
  26.             <BR>
  27.             <IMG SRC="../images/btslarge.jpg" HEIGHT=119 WIDTH=171  ALT="Behind the Scenes at Exploration Air" BORDER=0 ></A>
  28.             <BR>
  29.             <BR>
  30.             <BR>
  31.             <!--BACK BUTTON AND VARIABLE TO RETURN TO ORIGINATING PAGE-->
  32.             <A HREF="<%=Request.ServerVariables("HTTP_REFERER")%>"><IMG SRC="../images/barrowy.gif" HEIGHT=8 WIDTH=8 ALT="Return to Previous Page" BORDER=0></A>
  33.              <FONT SIZE=2 FACE="VERDANA, ARIAL, HELVETICA"><STRONG>
  34.             <A HREF="<%=Request.ServerVariables("HTTP_REFERER")%>">
  35.             B  A  C  K </A>
  36.             </STRONG></FONT>
  37.             <BR> 
  38.             <BR>
  39.  
  40.             <!--JAVASCRIPT TO VIEW PAGE'S SOURCE CODE-->
  41.             <A HREF="JavaScript:openWindow('../Search/Search.asp')">View Source</A>
  42.             <BR>
  43.             <BR>
  44.  
  45.             <!--JAVASCRIPT TO VIEW PAGE'S SOURCE CODE-->
  46.             <A HREF="JavaScript:openWindow('../Search/AdvSearch.asp')">View Advanced Source</A>
  47.             <BR>
  48.         </TD>
  49.  
  50.         <TD BGCOLOR="#FFFFFF" BACKGROUND="../images/btsbg.gif" VALIGN=top>
  51.             <BR CLEAR=ALL>
  52.             <TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>   
  53.                 <TR>
  54.                     <TD VALIGN=top>
  55.                         <FONT FACE="VERDANA, ARIAL, HELVETICA" COLOR="#0000FF" SIZE=5>How the Content Indexing Pages Work</FONT>
  56.                         <HR>
  57.                         <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="2">
  58.                         <H2>Functional Overview</H2>
  59.                         The set of Web pages in the Search directory allow the user to search for material using two 
  60.                         types of search: Simple and Advanced.
  61.                         <P>
  62.                         <H3>Simple Search</H3>
  63.                         Simple search uses similar technology to that used in earlier versions of Microsoft Index Server. The query 
  64.                         information is collected in Search.asp using a standard HTML form. Index Server 
  65.                         supports a rich query language. If you installed the Index Server documentation, see the
  66.                         <A HREF="<%=GetServerName()%>/IISSamples/ISSamples/ixqlang.htm">Query Language</A> section.
  67.                         The query request is sent to Search.idq for processing. Search.idq works in conjunction with a file named Search.htx
  68.                         to produce the simple query output.
  69.                         <P>
  70.                         <H3>Advanced Search</H3>
  71.                         Index Server provides an alternative method of issuing queries on an indexed file system. 
  72.                         Instead of using Index Server's standard forms, you can write SQL queries in applications that 
  73.                         use ActiveX Data Objects (ADO). In your .asp files, use the SQL Extensions to form the query, 
  74.                         ADO to retrieve the data, and a scripting language such as Microsoft Visual Basic, Scripting 
  75.                         Edition (VBScript) to display the data.
  76.                         <P>
  77.                         The SQL used with Index Server consists of extensions to the subset of SQL-92 and SQL3 that 
  78.                         specifies queries on relational database systems. This SQL includes extensions to the SELECT 
  79.                         statement and its <STRONG>FROM</STRONG> and <STRONG>WHERE</STRONG> clauses.
  80.                         <P>
  81.                         <H4>Index Server Data, ADO, and OLE DB</H4>
  82.                         Because Index Server can function as an OLE DB provider, and with ADO you can consume OLE DB 
  83.                         rowset data, you can take the results of an Index Server query and use them in a subsequent query 
  84.                         against a different OLE DB provider (such as the ODBC Provider). For example, you can search for 
  85.                         all the travel reports in a given directory and then submit a query against SQL Server to 
  86.                         find the current travel budget of each trip report author.
  87.                         <P>
  88.                         The SQL extensions to Index Server do not support cross-data source queries; you need to issue 
  89.                         separate queries against Index Server and (for example) the ODBC Provider to SQL Server.
  90.                         <P>
  91.                         <H4>How an Advanced Query Works</H4>
  92.                         The user enters data into an HTML form in the AdvSearch.asp page. Once this is
  93.                         entered, the page posts back to itself and the data is taken from the form.
  94.                         <P>
  95.                         Farther down the page a new query object is instantiated (<STRONG>ixsso.Query</STRONG>) and the query string is
  96.                         built dynamically by VBScript running on the server.
  97.                         <P>
  98.                         The query is then issued by calling the <STRONG>CreateRecordSet</STRONG> method on the query object.
  99.                         Finally, the results are displayed using normal ADO data fetching mechanisms 
  100.                         (checking for the end of the resultset with the
  101.                         <STRONG>EOF</STRONG> property and using <STRONG>MoveNext</STRONG> property).
  102.                         <H2>Components Used</H2>
  103.                         The only component used is the Index Server component <STRONG>ixsso.Query</STRONG>.
  104.                         <P>
  105.                         </FONT>
  106.                     </TD>
  107.                 </TR>
  108.             </TABLE>
  109.             <!--END TOP TABLE HOLDING GRAPHIC, NAVIGATIONAL LINK, AND MAIN CONTENT-->
  110.             <BR>
  111.             <BR>
  112.  
  113.             <CENTER>
  114.             <!--BEGIN LEGAL INFORMATION-->
  115.             <TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
  116.                 <TR>
  117.                     <TD>
  118.                         <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="1"><A HREF="../legal.htm">©1997 Microsoft Corporation. All rights reserved. Terms of Use.</A></FONT>
  119.                         <P>
  120.                     </TD>
  121.                 </TR>
  122.             </TABLE>
  123.             </CENTER>
  124.             <!--END LEGAL INFORMATION-->
  125.         </TD>
  126.     </TR>
  127. </TABLE>
  128.  
  129. </BODY>
  130. </HTML>
  131.  
  132. <SCRIPT LANGUAGE=JavaScript>
  133. function openWindow(SourceURL)
  134. {
  135.     // Set some defaults
  136.     width=450;
  137.     height=450;
  138.  
  139.     url = "code.asp?Source=" + SourceURL;
  140.     window.open(url,"Sample","resizable=yes,scrollbars=yes,width=" + width + ",height=" + height);
  141. }
  142. </SCRIPT>
  143.