<tr>
<td valign="top"><a name="path">path</a></td><td valign="top">dbtype_wstr |
dbtype_byref</td>
<td valign="top" width=65%>文件的物理路径,包含文件名。</td>
</tr>
<tr>
<td valign="top">rank</td><td valign="top">dbtype_i4</td>
<td valign="top" width=65%>行的等级,范围从 0 到 1000,数字越大表示越匹配。</td>
</tr>
<tr>
<td valign="top">rankvector</td><td valign="top">dbtype_i4 |
dbtype_vector</td>
<td valign="top" width=65%><a href="#vectorqueries">矢量查询</a>的独立组件的等级。</td>
</tr>
<tr>
<td valign="top">shortfilename</td><td valign="top">dbtype_wstr |
dbtype_byref</td>
<td valign="top" width=65%>短 (8.3) 文件名。</td>
</tr>
<tr>
<td valign="top">size</td><td valign="top">dbtype_i8</td>
<td valign="top" width=65%>文件大小,单位是字节。</td>
</tr>
<tr>
<td valign="top">usn</td><td valign="top">dbtype_i8</td>
<td valign="top" width=65%>更新序列号,仅用于 ntfs 驱动器。</td>
</tr>
<tr>
<td valign="top"><a name="vpath">vpath</a></td><td valign="top">dbtype_wstr |
dbtype_byref</td>
<td valign="top" width=65%>指向文件的完整虚拟路径,包括文件名。如果有多个可能的路径,将选择最符合查询的一个。</td>
</tr>
<tr>
<td valign="top">workid</td><td valign="top">dbtype_i4</td>
<td valign="top" width=65%>文件的 internal id,index server 使用。</td>
</tr>
<tr>
<td valign="top">write</td><td valign="top">vt_filetime</td>
<td valign="top" width=65%>最近一次写文件的时间。</td>
</tr>
</table>
<h2><a name="definingnewpropertynames">定义新属性名</a></h2>
<p>要定义不在前面列表中的属性,必须把它们列在 .idq 文件的 [names] 节中。要在限制、排序方法或作为检索的列中使用这些在 .idq 文件中定义的属性,请使用下面格式:</p>
<p>[names]<br>
#不在标准列表中的属性<br>
<em>propertyname</em> ( <em>datatype </em>) = <em>guid</em> ["<em>name</em>" | <em>propid</em>]<br>
</p>
<p>语法中,<em>"name"</em> 是属性名(下面的例子是 <strong>"sales"</strong>),<em>propid</em> 是十六进制的属性 id 。注意,要用引号把友好名称括起来,但属性 id 不要用引号。</p>
<p>例如,假设想定义 html meta 标记作为属性名,以便某人可以搜索,要定义的属性是 <strong>sales</strong>。</p>
<p><strong>定义 sales 属性</strong><!–</p>–><br>
<ol>
<li>在 .idq 文件中的 [names] 节下,添加下面的行:</li>
<p>metadescription(dbtype_wstr) = d1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1 "sales"<!–</p>–><br>
<p>guid 号来自注册表的 <strong>metatagclsid</strong> 参数,该参数在下面位置:<!–</p>–><br>
<pre>hkey_local_machine
\system
\currentcontrolset
\control
\htmlfilter
\metatagclsid</pre>
<li>然后,在 html 文件中想要出现标记的地方,定义 meta 说明。</li>
<p>例如,假设以后想搜索所有包含销售计划的文件:<!–</p>–><br>
<p>在 file1.htm 中:<!–</p>–><br>
<p><meta name="sales" content="projections for 1998"><!–</p>–><br>
<p>在 file2.htm 中:<!–</p>–><br>
<p><meta name="sales" content="projections for 1999"><!–</p>–><br>
<p>在 file3.htm 中:<!–</p>–><br>
<p><meta name="sales" content="sales in 1997"><!–</p>–><br>
</ol>
<p><strong>注意</strong> 请确保将 meta name 标记添加到文件开始的 <head> 和 </head> html 标记之间。</p>
<p>现在就可以搜索所有关于销售计划的文件,请发送下面查询:</p>
<p>@metadescription projections<!–</p>–><br>
<p>该查询返回所有在 meta 标记的 content 字段中包含单词 <em>projections</em> 的文件。在该例子中,将返回 file1.htm 和 file2.htm。</p>
<p>但是,假如要按年搜索销售情况,例如 1997 年的销售列表,请发送下面查询:</p>
<p>@metadescription 1997<!–</p>–><br>
<p>将返回 file3.htm。</p>
