home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Examples / store / verityindex.cfm < prev    next >
Encoding:
Text File  |  1999-04-12  |  1.4 KB  |  52 lines

  1. <!--- This is the query whose data will be stored in the Verity index --->
  2. <CFQUERY DATASOURCE="CFexamples" NAME="GetItems">
  3. SELECT * FROM StoreItems, StoreManufacturers 
  4. WHERE StoreManufacturers.ManufacturerID = StoreItems.ManufacturerID
  5. </CFQUERY>
  6.  
  7. <!--- This CFINDEX tag will actually perform the indexing of the query
  8.     data.  For each record, all the text in StoreManufacturers.Name,
  9.     StoreItems.ItemName, and StoreItems.ItemDesc will be indexed; when
  10.     a search is performed on this index, the ItemID and ItemName will
  11.     be returned as the Key and Title. --->
  12. <CFINDEX ACTION="UPDATE"
  13.     COLLECTION="CFexamples"
  14.     TYPE="CUSTOM"
  15.     BODY="Name,ItemName,ItemDesc"
  16.     KEY="ItemID"
  17.     TITLE="ItemName"
  18.     QUERY="GetItems">
  19.  
  20. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  21.  
  22. <HTML>
  23. <HEAD>
  24.     <TITLE>Online Store - Search</TITLE>
  25. </HEAD>
  26.  
  27.  
  28. <BODY BGCOLOR="#FFCC00" LINK="Maroon" BACKGROUND="images/storebg.gif" LEFTMARGIN=5 TOPMARGIN=0>
  29.  
  30.  
  31. <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
  32. <TR>
  33.     <TD WIDTH=130 HEIGHT=15 NOWRAP ALIGN="RIGHT">
  34.         <CFINCLUDE TEMPLATE="_showcart.cfm">
  35.     </TD>
  36.     <TD WIDTH="70" NOWRAP> </TD>
  37.     <TD VALIGN="top" WIDTH=350>
  38.  
  39.     <BR><BR>
  40.     
  41.     <P><FONT FACE="Helvetica" SIZE="-1">Indexing complete.</FONT></P>
  42.     
  43.     <P><FONT FACE="Helvetica" SIZE="-1"><A HREF="search.cfm">Search</A></FONT></P>
  44.  
  45.     <CF_ShowDoc ID=1000>
  46.     
  47.     </TD>
  48. </TR>
  49. </TABLE>
  50.  
  51. </BODY>
  52. </HTML>