手机版

如何实现全文检索?(2)

时间:2025-07-08   来源:未知    
字号:

如何实现全文检索?

url="chunfeng/" & fn

Response.Write "<A HREF=" & url & ">

" & tit

end if

rcst1.movenext

result=result or to_find

loop

Response.Write "</UL>"

' 把符合条件的文件标题以超级链接形式输出到客户端 if not result then

Response.Write "对不起,没有找到!"

end if

mousepointer=0

%>

<script RUNAT="Server" LANGUAGE="VBScript"> function text_match(filename,search_string)

dim retstring

dim find_pos

Dim fso, a

dim done

text_match=false

Set fso = Server .CreateObject("Scripting.FileSystemObject ")

' 创建脚本的文件系统,打开文本流以读入

Set a = fso.OpenTextFile(filename, 1, FALSE)

done=a.AtEndOfStream or text_match

Do While not done

retstring = a.ReadLine

find_pos=instr(retstring,search_string)

if find_pos>0 then text_match=true

done=a.AtEndOfStream or text_match

Loop

a.Close

end function

</script>

</body>

</html>

如何实现全文检索?(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)