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.

256 lines
22 KiB

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <html>
  3. <head>
  4. <title>Microsoft Index Server Guide: Internet Data Query Files</title>
  5. <meta name="FORMATTER" content="Microsoft FrontPage 1.1">
  6. <meta name="GENERATOR" content="Microsoft FrontPage 1.1">
  7. </head>
  8. <body bgcolor="#FFFFFF">
  9. <!--Headerbegin--><p align=center><a name="TOP"><img src="onepix.gif" alt="Space" align=middle width=1 height=1></a> <a href="default.htm#Top"><img src="toc.gif" alt=" Contents" align=middle border=0 width=89 height=31></a> <a href="webhits.htm"><img src="previous.gif" alt="Previous" align=middle border=0 width=32 height=31></a> <a href="htxhelp.htm"><img src="next.gif" alt="Next" align=middle border=0 width=32 height=31></a> </p>
  10. <hr>
  11. <!--Headerend--><p><a name="InternetDataQueryFiles"><font size=6><strong>Internet Data Query Files</strong></font></a></p>
  12. <p align=left><!--Chaptoc--></p>
  13. <blockquote>
  14. <p><a href="idqhelp.htm#namesection">Names Section</a> <br>
  15. <a href="idqhelp.htm#qrysection">Query Section</a> <br>
  16. <a href="idqhelp.htm#SeqQuery">Effect of Parameters on Query Performance</a> <br>
  17. </p>
  18. </blockquote>
  19. <hr>
  20. <!--ChaptocEnd--><p>Internet Data Query files (files with an .idq extension) for Microsoft Index Server (together with the form parameters) specify
  21. the query that Microsoft Index Server will run. The .idq file is divided into two sections, the <a href="#namesection">names section</a> and the <a href="#qrysection">query
  22. section</a>. The names section is optional, and need not be supplied for standard queries. </p>
  23. <p><a name="IDQ-HTXPath"><strong>Note</strong></a><strong>&#160;&#160;&#160;</strong>All paths to .idq files must be the full path name from a virtual root, not a relative path or a physical path. In other
  24. words, all paths must start with a slash and cannot contain &#147;.&#148; or &#147;..&#148; components. See the following examples:</p>
  25. <blockquote>
  26. <p><strong>Valid Paths</strong><br>
  27. /scripts/myquery.idq<br>
  28. /scripts/samples/search/query.idq</p>
  29. </blockquote>
  30. <blockquote>
  31. <p><strong>Invalid Paths</strong><br>
  32. c:\inetsrv\scripts\myquery.idq<br>
  33. scripts/query.idq <br>
  34. /samples/../scripts/query.idq <br>
  35. </p>
  36. </blockquote>
  37. <p>The .idq files cannot be on a virtual root pointing to a remote Uniform Naming Convention (UNC) share.</p>
  38. <hr>
  39. <h1><a href="#TOP"><img src="up.gif" alt="To Top" align=middle border=0 width=14 height=11></a><a name="namesection">Names Section</a></h1>
  40. <p>The names section of the Internet Data Query file defines nonstandard column names that can be referred to in the query. The
  41. columns refer to ActiveX&#153; properties that have been created in document files with IPropertyStorage, or in the Microsoft&#174;
  42. Office summary and custom properties. The globally unique identifier (GUID) for Microsoft Office is
  43. 0xF29F85E0,0x4FF9,0x1068,0xAB9108002B27B3D9. The following sample defines a few of the ActiveX Summary
  44. Information properties: </p>
  45. <blockquote>
  46. <pre><font size=3><tt>[Names]
  47. #Property set for OLE document properties
  48. DocTitle = F29F85E0-4FF9-1068-AB91-08002B27B3D9 2
  49. DocSubject( DBTYPE_STR|DBTYPE_BYREF ) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 3
  50. DocAuthor( DBTYPE_STR|DBTYPE_BYREF ) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 4
  51. DocEditTime( DBTYPE_DATE ) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 0xa
  52. DocLastPrinted( DBTYPE_DATE ) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 0xb
  53. DocPageCount( DBTYPE_I4 ) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 0xe
  54. DocWordCount( DBTYPE_I4 ) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 0xf
  55. SalesRegion( DBTYPE_WSTR | DBTYPE_BYREF ) = D5CDD505-2E9C-101B-9397-08002B2CF9AE &quot;SalesRegion&quot;</tt></font></pre>
  56. </blockquote>
  57. <p>Within the section, any blank line, or a line beginning with a number sign (<tt>#</tt>) is ignored. Other lines consist of a <em>friendly name</em>,
  58. optionally followed by a <em>datatype</em> in parenthesis, followed by an equal sign (=), then a <a href="glossary.htm#GUID">GUID</a> identifying the <em>property set</em> for
  59. the column, followed by either a number or a string giving the <a href="glossary.htm#PROPID">PROPID</a> or the <em>property name,</em> respectively. If no datatype is
  60. provided, DBTYPE_WSTR is assumed.</p>
  61. <p>The friendly name is the token in query restrictions, sort specifications, and so on. Multiple friendly names can point to the
  62. same property. For example, the friendly name &#147;Author&#148; might be replaced by &#147;Auteur&#148; if an author property is to be shown
  63. to a French audience. Friendly names cannot contain spaces or special characters such as angle brackets, equal signs,
  64. exclamation points, commas, periods, and asterisks (&gt;=&lt;!,.*).</p>
  65. <p>The GUID and PROPID/property name is the name of the property within the ActiveX property namespace. See the Win32
  66. Software Development Kit (SDK) for more information on ActiveX properties. The PROPID may be specified as a decimal
  67. (base 10) or in hexadecimal (base 16) number. In the latter case, the number must be preceded by 0x. Property names must
  68. be enclosed in quotation marks. For example, &#147;10&#148; is not the same as 10.</p>
  69. <p>The datatype is used during restriction parsing to correctly interpret user input. The following table lists the datatypes
  70. supported, their equivalent ActiveX mnemonics, and any formatting restrictions.</p>
  71. <div align=left>
  72. <table border=1 cellpadding=5 cellspacing=0 width=100%>
  73. <tr><th align=left valign=bottom width=15%><font size=2>Datatype</font></th><th align=left valign=bottom width=15%><font size=2>ActiveX
  74. mnemonics</font></th><th align=left valign=bottom width=70%><font size=2>Formatting restrictions</font></th></tr>
  75. <tr><td valign=top width=15%><font size=2>DBTYPE_I1</font></td><td valign=top width=15%><font size=2>VT_I1</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  76. 0x before the number, for example, 0x3F8.</font></td></tr>
  77. <tr><td valign=top width=15%><font size=2>DBTYPE_UI1</font></td><td valign=top width=15%><font size=2>VT_UI1</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  78. 0x before the number.</font></td></tr>
  79. <tr><td valign=top width=15%><font size=2>DBTYPE_I2</font></td><td valign=top width=15%><font size=2>VT_I2</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  80. 0x before the number.</font></td></tr>
  81. <tr><td valign=top width=15%><font size=2>DBTYPE_UI2</font></td><td valign=top width=15%><font size=2>VT_UI2</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  82. 0x before the number.</font></td></tr>
  83. <tr><td valign=top width=15%><font size=2>DBTYPE_I4</font></td><td valign=top width=15%><font size=2>VT_I4</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  84. 0x before the number.</font></td></tr>
  85. <tr><td valign=top width=15%><font size=2>DBTYPE_UI4</font></td><td valign=top width=15%><font size=2>VT_UI4</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  86. 0x before the number.</font></td></tr>
  87. <tr><td valign=top width=15%><font size=2>DBTYPE_I8</font></td><td valign=top width=15%><font size=2>VT_I8</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  88. 0x before the number.</font></td></tr>
  89. <tr><td valign=top width=15%><font size=2>DBTYPE_UI8</font></td><td valign=top width=15%><font size=2>VT_UI8</font></td><td valign=top width=70%><font size=2>Integer. Expressed in either decimal (base 10) or hexadecimal (base 16) notation. The latter requires
  90. 0x before the number.</font></td></tr>
  91. <tr><td valign=top width=15%><font size=2>DBTYPE_R4</font></td><td valign=top width=15%><font size=2>VT_R4</font></td><td valign=top width=70%><font size=2>Real number. Can be expressed in scientific notation.</font></td></tr>
  92. <tr><td valign=top width=15%><font size=2>DBTYPE_R8</font></td><td valign=top width=15%><font size=2>VT_R8</font></td><td valign=top width=70%><font size=2>Real number. Can be expressed in scientific notation.</font></td></tr>
  93. <tr><td valign=top width=15%><font size=2>DBTYPE_CY</font></td><td valign=top width=15%><font size=2>VT_CY</font></td><td valign=top width=70%><font size=2>Currency. Expressed as two integers, separated by a period, for example, 100.55. Cannot be
  94. preceded by $, &#165;, &#163;, and so on. This datatype does not specify the currency format.</font></td></tr>
  95. <tr><td valign=top width=15%><font size=2>DBTYPE_DATE</font></td><td valign=top width=15%><font size=2>VT_DATE</font></td><td valign=top width=70%><font size=2>Date. Expressed as an absolute in two forms: <em>yyyy/mm/dd</em> and <em>yyyy/mm/dd hh:mm:ss</em>. Also
  96. expressed as a relative date: -#y, -#m, -#w, -#d, -#h, -#n, -#s where the letters correspond to year,
  97. month, week, day, hour, minute and second, respectively. Positive relative dates into the future are
  98. not supported.</font></td></tr>
  99. <tr><td valign=top width=15%><font size=2>DBTYPE_BOOL</font></td><td valign=top width=15%><font size=2>VT_BOOL</font></td><td valign=top width=70%><font size=2>Boolean. Expressed as TRUE or FALSE.</font></td></tr>
  100. <tr><td valign=top width=15%><font size=2>DBTYPE_STR</font></td><td valign=top width=15%><font size=2>VT_LPSTR</font></td><td valign=top width=70%><font size=2>String. Any input accepted.</font></td></tr>
  101. <tr><td valign=top width=15%><font size=2>DBTYPE_WSTR</font></td><td valign=top width=15%><font size=2>VT_LPWSTR</font></td><td valign=top width=70%><font size=2>Unicode string. Any input accepted.</font></td></tr>
  102. <tr><td valign=top width=15%><font size=2>DBTYPE_BSTR</font></td><td valign=top width=15%><font size=2>VT_BSTR</font></td><td valign=top width=70%><font size=2>Basic string. Any input accepted.</font></td></tr>
  103. <tr><td valign=top width=15%><font size=2>DBTYPE_GUID</font></td><td valign=top width=15%><font size=2>VT_CLSID</font></td><td valign=top width=70%><font size=2>GUID (Globally Unique IDentifier). Expressed as <em>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.</em></font></td></tr>
  104. <tr><td valign=top width=15%><font size=2>DBTYPE_BYREF</font></td><td valign=top width=15%><font size=2>(not applicable)</font></td><td valign=top width=70%><font size=2>Older operator. Should be added to strings. For example: DBTYPE_WSTR | DBTYPE_BYREF.</font></td></tr>
  105. <tr><td valign=top width=15%><font size=2>DBTYPE_VECTOR</font></td><td valign=top width=15%><font size=2>VT_VECTOR</font></td><td valign=top width=70%><font size=2>Older operator. Vector properties are fully supported.</font></td></tr>
  106. <tr><td><font size=2>VT_FILETIME</font></td><td><font size=2>VT_FILETIME</font></td><td><font size=2>Expressed as an absolute in two forms: <em>yyyy/mm/dd</em> and <em>yyyy/mm/dd hh:mm:ss</em>. Also expressed as
  107. a relative date: -#y, -#m, -#w, -#d, -#h, -#n, -#s where the letters correspond to year, month, week,
  108. day, hour, minute and second, respectively. Positive relative dates into the future are not
  109. supported.</font></td></tr>
  110. </table>
  111. </div>
  112. <p>The friendly names are always available, even if they are not explicitly defined in the names section. See <a href="qrylang.htm#PropertyNamesList">List of Property
  113. Names</a> on the &#147;Query Language&#148; page. For other Microsoft Office properties, see the Microsoft Office Software Developer&#146;s
  114. Kit (SDK). For properties available with other products, see the documentation for each independent software vendor.</p>
  115. <p>The <a href="filtrhlp.htm">HTML filter</a> extracts text from the content field of a meta element. For example, if an HTML file has this line:</p>
  116. <blockquote>
  117. <pre>&lt;META NAME=&quot;DESCRIPTION&quot; CONTENT=&quot;Sample query form for Microsoft Index Server&quot;&gt;</pre>
  118. </blockquote>
  119. <p>Then a user can query the information in the content field, namely &#147;Sample query form for Microsoft Index Server&#148;, by using
  120. the HTML meta property. The <a href="glossary.htm#GUID">GUID</a> for the meta property is D1B5D3F0-C0B3-11CF-9A92-00A0C908DBF1 and the
  121. property name is specified by the name field, or the HTTP-EQUIV field. In the above example, the property name is
  122. <tt>DESCRIPTION</tt>. Thus a friendly name, say MetaDescription, for the meta property can be defined as </p>
  123. <blockquote>
  124. <pre>MetaDescription(DBTYPE_WSTR) = D1B5D3F0-C0B3-11CF-9A92-00A0C908DBF1 description</pre>
  125. </blockquote>
  126. <p>The GUID for meta property is a registry parameter located at </p>
  127. <blockquote>
  128. <pre>HKEY_LOCAL_MACHINE
  129. &#160;\System
  130. &#160;&#160;\CurrentControlSet
  131. &#160;&#160;&#160;\Control\HtmlFilter
  132. &#160;&#160;&#160;&#160;\MetaTagClsid</pre>
  133. </blockquote>
  134. <hr>
  135. <h1><a href="#TOP"><img src="up.gif" alt="To Top" align=middle border=0 width=14 height=11></a><a name="qrysection">Query Section</a> </h1>
  136. <p>The query section of the .idq file specifies parameters that will be used in the query. It can refer to form variables and can
  137. include conditional expressions to set a variable to alternative values depending upon some condition. The section begins with
  138. a [Query] tag, and is followed by a set of parameters. Here is a simple .idq file:</p>
  139. <blockquote>
  140. <pre>[Query]
  141. CiScope=/
  142. CiColumns=FileName
  143. CiRestriction=#filename *.*
  144. CiTemplate=/Scripts/Template.htx</pre>
  145. </blockquote>
  146. <p>The preceding four parameters are required. In many cases, one or more parameters will be passed down from a form. Here
  147. is a very simple form:</p>
  148. <blockquote>
  149. <pre>&lt;FORM ACTION=&quot;/scripts/simple.idq&quot; METHOD=&quot;GET&quot;&gt;
  150. Query : &lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;Restriction&quot; SIZE=&quot;60&quot; MAXLENGTH=&quot;100&quot; VALUE=&quot;&quot;&gt;
  151. &lt;INPUT TYPE=&quot;SUBMIT&quot; VALUE=&quot;Execute Query&quot;&gt;
  152. &lt;/FORM&gt;</pre>
  153. </blockquote>
  154. <p>This form can work with the following .idq file to pass parameters through from the user:</p>
  155. <blockquote>
  156. <pre>[Query]
  157. CiScope=/
  158. CiColumns=FileName
  159. CiRestriction=%Restriction%
  160. CiTemplate=/Scripts/Template.htx</pre>
  161. </blockquote>
  162. <p><a href="htxhelp.htm#ifstatement">Conditional expressions</a> can also be used in .idq files in exactly the same manner as .htx files. In addition to the four parameters
  163. shown earlier, there are many other optional parameters. Common additions include <a href="idq-vars.htm#CiSort"><strong>CiSort</strong></a> and <a href="idq-vars.htm#CiForceUseCi"><strong>CiForceUseCi</strong></a>. See the <a href="idq-vars.htm#idqvars">full
  164. list</a> of additions.</p>
  165. <hr>
  166. <p><font color="#FF0000"><strong>Warning</strong></font><strong>&#160;&#160;&#160;</strong>Be careful when substituting parameters for the <a href="idq-vars.htm#CiTemplate"><strong>CiTemplate</strong></a> parameter because you could unintentionally allow
  167. files in execute-only scripts directories to be sent over the network. For example, if an .idq file contained the line </p>
  168. <blockquote>
  169. <pre>CiTemplate=%CiTemplate%</pre>
  170. </blockquote>
  171. <p>a client could send a URL that contained the following line in the query string:</p>
  172. <blockquote>
  173. <pre>CiTemplate=/scripts/mysecretfile.pl</pre>
  174. </blockquote>
  175. <p>With this string, an unauthorized user could read the contents of a confidential file.</p>
  176. <p>It is better to switch among different. htx files by just using the base name of the file and adding the script directory and file
  177. name extension in the parameter substitution. The following file, Sample.idq, shows how to do this:</p>
  178. <blockquote>
  179. <pre>[Query]</pre>
  180. <blockquote>
  181. <pre>CiRestriction=%q%
  182. CiTemplate=/scripts/%t%.htx
  183. CiSort=%s%
  184. CiScope=/</pre>
  185. </blockquote>
  186. </blockquote>
  187. <p>The query can be executed with a URL like the following:</p>
  188. <blockquote>
  189. <pre>http://<em>computername</em>/scripts/sample.idq?q=ActiveX&amp;t=form1</pre>
  190. </blockquote>
  191. <hr>
  192. <h1><a href="#TOP"><img src="up.gif" alt="To Top" align=middle border=0 width=14 height=11></a><a name="SeqQuery">Effect of Parameters on Query Performance</a></h1>
  193. <p>The fastest query is a <em>sequential</em> query that uses the <em>content index</em>. Certain parameter settings will force the query engine to
  194. use a less efficient method to resolve the query. To guarantee fast queries, set <a href="idq-vars.htm#CiSort"><strong>CiSort</strong></a> to nothing (or descending by rank) set
  195. <a href="idq-vars.htm#CiForceUseCi"><strong>CiForceUseCi</strong></a> to TRUE, and do not reference <a href="idq-vars.htm#CiMatchedRecordCount"><b>CiMatchedRecordCount</b></a>, <a href="idq-vars.htm#CiRecordsNextPage"><b>CiRecordsNextPage</b></a><b>,</b> or
  196. <a href="idq-vars.htm#CiTotalNumberPages"><b>CiTotalNumberPages</b></a> in the .htx template.</p>
  197. <p><strong>Note:</strong> A Uniform Resource Locator (URL) or a form-based query can send up to 4 kilobytes (K) of data. If a query larger
  198. than 4K is sent, the behavior is unpredictable. The query size includes all variables sent from the browser to the .idq file.</p>
  199. <h2>Sequential versus Nonsequential Execution</h2>
  200. <p>A query can be executed sequentially (results fetched as needed) or it can be executed nonsequentially (results cached on the
  201. server). A sequential query requires fewer server resources, but also has some limitations. Backwards scrolling
  202. (<a href="idq-vars.htm#CiBookmarkSkipCount"><strong>CiBookmarkSkipCount</strong></a> &lt; 0) will re-execute the query and scroll forward to the specified position. Sequential queries
  203. cannot refer to the following variables: <a href="idq-vars.htm#CiMatchedRecordCount"><b>CiMatchedRecordCount</b></a>, <a href="idq-vars.htm#CiRecordsNextPage"><b>CiRecordsNextPage</b></a>, and <a href="idq-vars.htm#CiTotalNumberPages"><b>CiTotalNumberPages</b></a><strong>.</strong></p>
  204. <p>Either of the following actions will force a query to be nonsequential:</p>
  205. <ul>
  206. <li><p align=left>Referring to the <a href="idq-vars.htm#CiMatchedRecordCount"><b>CiMatchedRecordCount</b></a>, <a href="idq-vars.htm#CiRecordsNextPage"><b>CiRecordsNextPage</b></a> or <a href="idq-vars.htm#CiTotalNumberPages"><b>CiTotalNumberPages</b></a> variables in the .htx
  207. page.</p>
  208. </li>
  209. <li><p align=left>Setting the <a href="idq-vars.htm#CiSort"><strong>CiSort</strong></a> parameter to a sort other than the native order of the result. <strong>CiSort</strong> can safely be set to sort
  210. ascending on WorkId (<tt>CiSort=WorkId[a]</tt>) or descending on Rank (<tt>CiSort=Rank[d]</tt>).</p>
  211. </li>
  212. </ul>
  213. <h2>Enumerated versus Indexed Resolution</h2>
  214. <p>Executing queries that must be <em>enumerated</em> can also slow down performance. Most queries are resolved by using the content
  215. index, but certain conditions force the query engine to recursively search the disk to locate matching files. These queries
  216. include:</p>
  217. <ul>
  218. <li><p align=left>Regular expressions on properties other than FileName which begin with a wildcard.</p>
  219. </li>
  220. <li><p align=left><a href="qrylang.htm#PropertyValueQueries">Property value queries</a> when <a href="idq-vars.htm#CiForceUseCi"><strong>CiForceUseCi</strong></a> is set to FALSE and the index is not up-to-date.</p>
  221. </li>
  222. <li><p align=left><a href="qrylang.htm#PropertyValueQueries">Property value queries</a> involving regular expressions with a wildcard prefix on a property other than <strong>FileName</strong> (for
  223. example, <tt>#DocAuthor *son</tt>).</p>
  224. </li>
  225. <li><p align=left><a href="qrylang.htm#PropertyValueQueries">Property value queries</a> involving regular expressions that start and end with wildcards (for example, <tt>#filename
  226. *sample*</tt>).</p>
  227. </li>
  228. <li><p align=left>Certain property value queries involving <strong>OR</strong> (such as <tt>@write &gt; -1d OR @create &gt; -1d</tt>).</p>
  229. </li>
  230. </ul>
  231. <p>Queries can be forced to use the content index by setting <a href="idq-vars.htm#CiForceUseCi"><strong>CiForceUseCi</strong></a> to <strong>TRUE</strong> in the .idq file. The query engine will
  232. always use the content index, but query results may be out-of-date for recently modified files. If the content index was used for
  233. a query, and some files on disk have been modified more recently than their contents have been filtered, the built-in variable
  234. <a href="idq-vars.htm#CiOutOfDate"><b>CiOutOfDate</b></a> will be set to the value 1. In some cases, a query is simply too complex to be resolved solely through use of the
  235. content index. In these cases, the built-in variable <a href="idq-vars.htm#CiQueryIncomplete"><strong>CiQueryIncomplete</strong></a> will be set to 1. Content queries can always be out of
  236. date and can use the content index anytime.</p>
  237. <h2>Deferring Nonindexed Trimming</h2>
  238. <p>Special support has been put in Index Server to optimize content queries that are sorted descending by rank (CiSort =
  239. Rank[d]). For such queries, minimal information can be retrieved from the index, before additional property and security tests
  240. are performed. However, if the total number of results matching the query is greater than <a href="idq-vars.htm#CiMaxRecordsInResultSet"><strong>CiMaxRecordsInResultSet</strong></a> then
  241. additional testing must be performed during index retrieval to remove items from this set that fail additional property and
  242. security tests. This frees up space in the result set for items matching the full query. This processing uses up resources, and can
  243. be deferred by setting <a href="idq-vars.htm#CiDeferNonIndexedTrimming"><strong>CiDeferNonIndexedTrimming</strong></a> to <strong>TRUE</strong>. The query will then pick <a href="idq-vars.htm#CiMaxRecordsInResultSet"><strong>CiMaxRecordsInResultSet</strong></a>
  244. items first, and trim those. The end result may be a number of matching items less than <a href="idq-vars.htm#CiMaxRecordsInResultSet"><strong>CiMaxRecordsInResultSet</strong></a>. For
  245. queries with the scope set to the entire corpus, on a server with little or no security, you can consider setting
  246. <a href="idq-vars.htm#CiDeferNonIndexedTrimming"><strong>CiDeferNonIndexedTrimming</strong></a> to <strong>TRUE</strong> to improve performance.</p>
  247. <!--Footerbegin--><hr>
  248. <p align=center><a href="default.htm#Top"><img src="toc.gif" alt=" Contents" align=middle border=0 width=89 height=31></a> <a href="webhits.htm"><img src="previous.gif" alt="Previous" align=middle border=0 width=32 height=31></a> <a href="#TOP"><img src="up_end.gif" alt="To Top" align=middle border=0 width=32 height=31></a> <a href="htxhelp.htm"><img src="next.gif" alt="Next" align=middle border=0 width=32 height=31></a> </p>
  249. <hr>
  250. <p align=center><em>&#169; 1996 by Microsoft Corporation. All rights reserved.<!--Footerend--></em></p>
  251. </body>
  252. </html>