Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  1. <% Response.Expires = 0 %>
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Test page 1 for IXSSO tests.</TITLE>
  5. </HEAD>
  6. <BODY BGCOLOR=FFFFFF LINK=0000FF ALINK=00DDDD>
  7. <H2>Test 1 for IXSSO.</H2>
  8. <P>
  9. Create a query object, set query parameters, execute query and instantiate
  10. a recordset.
  11. </P>
  12. <%
  13. set Q=Server.CreateObject("IXSSO.Query")
  14. set Util=Server.CreateObject("IXSSO.Util")
  15. Util.AddScopeToQuery Q, "/", "DEEP"
  16. Q.Columns = "filename, rank, vpath, DocAuthor, DocTitle, size, write"
  17. Q.Catalog = "query://./web"
  18. Q.Query = "#filename *"
  19. Q.SortBy = "rank[d]"
  20. Q.OptimizeFor = "recall"
  21. Q.AllowEnumeration = FALSE
  22. Q.MaxRecords = 20000
  23. %>
  24. <FONT SIZE=3>
  25. <PRE>
  26. Query = <%= Q.Query%>
  27. Columns = <%= Q.Columns%>
  28. CiScope = <%= Q.CiScope%>
  29. CiFlags = <%= Q.CiFlags%>
  30. SortBy = <%= Q.SortBy%>
  31. Catalog = <%= Q.Catalog%>
  32. CiCatalog = <%= Q.CiCatalog%>
  33. CiMachine = <%= Q.CiMachine%>
  34. OptimizeFor = <%= Q.OptimizeFor%>
  35. AllowEnumeration = <%Response.Write(CStr(Q.AllowEnumeration))%>
  36. MaxRecords = <%= Q.MaxRecords%>
  37. </PRE>
  38. <%
  39. set RS=Q.CreateRecordSet( "sequential" )
  40. %>
  41. <PRE>
  42. QueryTimedOut = <%if Q.QueryTimedOut then Response.Write("TRUE") else Response.Write("FALSE") %>
  43. QueryIncomplete = <%if Q.QueryIncomplete then Response.Write("TRUE") else Response.Write("FALSE") %>
  44. OutOfDate = <%if Q.OutOfDate then Response.Write("TRUE") else Response.Write("FALSE") %>
  45. </PRE>
  46. <BR>
  47. <BR>
  48. <!--#include virtual="/ixstest/srcform.inc"-->
  49. <BR>
  50. <BR>
  51. </BODY>
  52. </HTML>