·您的位置: 首页 » 资源教程 » 编程开发 » ASP » 用ASP怎样编写文档搜索页面(4)

用ASP怎样编写文档搜索页面(4)

类别: ASP教程  评论数:0 总得分:0
<td valign="top"><code>@contents apple tree</code></td>
<td valign="top">同上</td>
</tr>
<tr>
<td valign="top"><code>Microsoft and @size > 1000000</code></td>
<td valign="top">包含单词“Microsoft”,并且大于大于一兆字节的页</td>
</tr>
<tr>
<td valign="top"><code>"microsoft and @size > 1000000"</code></td>
<td valign="top">包含指定短语的页(与上面不同)</td>
</tr>
<tr>
<td valign="top"><code>#filename *.avi</code></td>
<td valign="top">视频文件(因为查询包含正则表达式,所以使用 # 前缀)</td>
</tr>
<tr>
<td valign="top"><code>@attrib ^s 32</code></td>
<td valign="top">带存档属性的页</td>
</tr>
<tr>
<td valign="top"><code>@docauthor = John Smith</code></td>
<td valign="top">由所给作者创作的页</td>
</tr>
<tr>
<td valign="top"><code>$contents why is the sky blue?</code></td>
<td valign="top">匹配查询的页</td>
</tr>
<tr>
<td valign="top"><code>@size < 100 & #filename *.gif</code></td>
<td valign="top">大于 100 字节的 GIF 文件</td>
</tr>
</table>

<h1><a name="PropertyNamesList">属性名列表</a></h1>

<p>这些属性在查询时都可用,附加的属性要看 Web 服务器的配置。</p>

<table border="1" cellpadding="4" cellspacing="1" width="100%">
<tr>
<th align="Left" valign="bottom" bgcolor="#C0C0C0" width="15%">友好名称</th>
<th align="Left" valign="bottom" bgcolor="#C0C0C0" width="20%">数据类型</th>
<th align="Left" valign="bottom" bgcolor="#C0C0C0" width="65%">属性</th></tr>
<tr>
<td valign="top">A_HRef</td>
<td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>HTML HREF 的文字,该属性名由 Microsoft&reg; Site Server 创建,与 Index Server 属性名 HtmlHRef 相对。可以查询,但不能检索。</td>
</tr>
<tr>
<td valign="top">Access</td>
<td valign="top">VT_FILETIME</td>
<td valign="top" width=65%>文件的最后访问时间。</td>
</tr>
<tr>
<td valign="top">All</td><td valign="top">(不适用)</td>
<td valign="top" width=65%>搜索字符串的每一个属性。可以查询,但不能检索。</td>
</tr>
<tr>
<td valign="top">AllocSize</td><td valign="top">DBTYPE_I8</td>
<td valign="top" width=65%>为文件分配的磁盘大小。</td>
</tr>
<tr>
<td valign="top">Attrib</td><td valign="top">DBTYPE_UI4</td>
<td valign="top" width=65%>文件属性,在 Win32 SDK 文档中说明。</td>
</tr>
<tr>
<td valign="top">ClassId</td><td valign="top">DBTYPE_GUID</td>
<td valign="top" width=65%>对象的类标识,例如 WordPerfect、Word 等等。</td>
</tr>
<tr>
<td valign="top"><a name="Characterization">Characterization</a></td><td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>文档的描述或摘要,由 Index Server 使用。</td>
</tr>
<tr>
<td valign="top">Contents</td><td valign="top">(不适用)</td>
<td valign="top" width=65%>文件的主要内容。可以查询,但不能检索。</td>
</tr>
<tr>
<td valign="top">Create</td><td valign="top">VT_FILETIME</td>
<td valign="top" width=65%>文件的创建时间。</td>
</tr>
<tr>
<td valign="top">Directory</td><td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>文件的物理路径,不包含文件名。</td>
</tr>
<tr>
<td valign="top">DocAppName</td><td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>创建文件的应用程序的名称。</td>
</tr>
<tr>
<td valign="top">DocAuthor</td><td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>文档的作者。</td>
</tr>
<tr>
<td>DocByteCount</td><td>DBTYPE_14</td><td>文档的字节数。</td>
</tr>
<tr>
<td>DocCategory</td><td>DBTYPE_STR |
DBTYPE_BYREF</td><td>文档的类别,如备忘录、计划或便笺。</td>
</tr>
<tr>
<td valign="top">DocCharCount</td><td valign="top">DBTYPE_I4</td>
<td valign="top" width=65%>文档的字符数。</td>
</tr>
-= 资 源 教 程 =-
文 章 搜 索
关键词:
类型:
范围:
纯粹空间 softpure.com
Copyright © 2006-2008 暖阳制作 版权所有
QQ: 15242663 (拒绝闲聊)  Email: faisun@sina.com
 纯粹空间 - 韩国酷站|酷站欣赏|教程大全|资源下载|免费博客|美女壁纸|设计素材|技术论坛   Valid XHTML 1.0 Transitional
百度搜索 谷歌搜索 Alexa搜索 | 粤ICP备19116064号-1