当前位置: 移动技术网 > IT编程>开发语言>.net > 用asp怎样编写文档搜索页面(1)

用asp怎样编写文档搜索页面(1)

2018年10月15日  | 移动技术网IT编程  | 我要评论

身上五个信号说明离肝癌不远,马夫哥李伟,我要你舅妈

<!doctype html public "-//ietf//dtd html//en">
<html><head><title>microsoft index server: 查询语言</title>


<script language="javascript">
tempstring = navigator.appversion
if (navigator.appname == "microsoft internet explorer"){
// check to see if browser is microsoft
if (tempstring.indexof ("4.") >= 0){
// check to see if it is ie 4
document.writeln(<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">);
}
else {
document.writeln(<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">);
}
}
else if (navigator.appname == "netscape") {
// check to see if browser is netscape
document.writeln(<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">);
}
else
document.writeln(<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">);
</script>

<meta name="description" content="tells how to refine searches by using complex queries"></head>

<body bgcolor="#ffffff" text="#000000">
<font face="宋体">

<h1><a name="querylanguage">查询语言</a></h1>

<p>通过在查询表格中键入单词或短语,然后单击按钮执行查询,就可以在 web 站点中搜索任意的单词或短语(例如,查询表格示例中的“执行查询”按钮)。本节将介绍以下主题:
</p>

<ul>
<li><strong><a href="#operators">逻辑和相近运算符</a>:</strong>显示如何通过插入逻辑和相近运算符执行更精确的查询。</li>
<li><strong><a href="#wildcards">通配符</a>:</strong>帮助您查找包含与所给单词相似的单词的页。</li>
<li><strong><a href="#freetextqueries">自由文本查询</a>:</strong> 说明如何基于短语的意思来表述一个查询,而不是用精确的单词。</li>
<li><strong><a href="#vectorqueries">矢量空间查询</a>:</strong>解释如何获得与单词和短语列表匹配的查询结果。</li>
<li><strong><a href="#propertyvaluequeries">属性值查询</a>:</strong>告诉您如何查询文件的属性值。</li>
<li><strong><a href="#examples">查询示例</a>:</strong>给出各种查询的示例。</li>
<li><strong><a href="#propertynameslist">属性名列表</a>:</strong>列出和说明可用于查询的属性名。</li>
</ul>

<p>搜索产生一个文件列表,这些文件中包含某个单词或短语(不管单词或短语出现在文件中的任何地方)。下面列表给出表述查询的规则:</p>

<ul>
<li>连续的单词作为短语对待,它们在匹配文档中必须以相同的顺序出现。</li>
<li>查询不区分大小写,因此可以用大写或小写键入查询。</li>
<li>可以搜索任何单词,但不包括在例外列表中列出的单词(对于英语,包括 <em>a</em>、<em>an</em>、<em>and</em>、<em>as</em> 和其他一些单词), 它们在查询中将被忽略。</li>
<li>在例外列表中的单词在短语中将作为占位符对待,用来进行相似查询。例如,如果查询“word for windows”,结果将给出“word for windows”和“word and windows” ,因为 <em>for </em> 是一个在例外列表中出现的虚词。</li>
<li>标点符号在搜索时将被忽略,如句号 (.)、冒号 (:)、分号 (;) 和逗号 (,)。</li>
<li>要在查询中使用特殊对待的字符,如 &、|、^、#、@、$、(、),请用引号 (“) 将查询括起来。</li>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网