火山岩控油清痘平衡露:如何在制作搜索引擎(像Goolge,baidu那样的)!!

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 03:52:47

如果只是想在网页上放一个搜索引擎,加几句代码就可以,把要搜索的信息连到百度或GOOGLE上了,就转到百度的搜索了。如果想做搜索引擎就很麻烦了,投资也很大。
如果是那个连接的代码的话,如下:
sousuo.asp
<form method="get" action="zhuanxiang.asp">
<input type="text" name="searchstrings">
<Input type="submit" name ="search" value="搜索">
<p>
<input name="goURL" type = "radio" Value="百度" checked>百度
<input name="goURL" type = "radio" Value="Yahoo" >Yahoo
</form>

zhuanxiang.asp
<%
response.buffer=true
Dim strUrlRedirTo,strSearchStrings
strSearchStrings=trim(request.QueryString("SearchStrings"))
If (Len(strSearchStrings)) then
strSearchStrings=Server.UrlEncode(strSearchStrings)
If request.QueryString("goURL")="百度" then
strUrlRedirTo="http://www.baidu.com/baidu?word="&strSearchStrings
end if
If request.QueryString("goURL")="Yahoo" then
strUrlRedirTo="http://cn.websearch.yahoo.com/search/web_cn?p="&strSearchStrings
end if
response.redirect ("strUrlRedirTo")
end if
%>
如果你要做搜索引擎,我就无能为力了。

不是一天两天就能的,你好很多很多服务器,然后检索网络,制成一个信息库,所以你要很好的软件支持,资金投入也是很大的

搞一个服务器,然后做个程序搜集数据

找一个有关LUCENE的教材看看,LUCENE是一个用JAVA编写的开源全文检索包很多搜索引擎都是用他编写的
给你几个有用的地址有事联系我(看我个人信息)。
www.lucene.com.cn/
www.chedong.com/tech/lucene.html
hedong.3322.org/archives/000206.html
blog.cnblog.org/archives/2005/07/luceneae
lucene.com.cn/about.htm
www.tianyablog.com/blogger/view_blog.asp