摘要随着互联网的快速发展,网络上的数据也随着爆炸式地增长。如何最快速筛选出对我们有用的信息成了主要问题。搜索引擎是指根据一定的策略、运用特定的计算机程序从互联网上搜集信息,在对信息进行组织和处理后,为用户提供检索服务,将用户检索相关的信息展示给用户的系统。搜索引擎已经成为互联网不可缺少的工具,可以帮助人们更快的找到所要的内容和信息。提高做事的效率,使互联网资源高效的利用。本文主要介绍了搜索引擎是从指定的Web页面中按照超链接进行采集、解析,并把解析出来的每条数据后加入数据库。用户可以通过客户端发送搜索请求,Web服务端对数据进行筛选、排序,最后展示到客户端。对信息的采集主要采用了HTML解析技术、通过迭代解析的方式不断采集数据。搜索引擎的整体构架了采用了MVC设计模型,采用了JSP技术和Struts2技术,用关键词匹配算法筛选结果,搜索结果匹配度良好。初步完成了搜索引擎的主要功能。关键词:搜索,数据库,JSP,Struts2AbstractWiththerapiddevelopmentoftheInternet,thedataonthenetworkwithexplosivegrowth.Howtoquicklyscreenoutmostofourusefulinformationbecamethemainproblem.Searchenginesisaccordingtoacertainstrategy,usingspecificcomputerprograminformationfromtheInternet.Intheinformationorganizationandprocessed,toprovideuserswithretrievalservice,showtheresulttouser.SearchenginehasbecomeanindispensabletooloftheInternet,canhelppeoplefastertofindthecontentandinformation,andimprovetheefficiencyofwork,maketheInternetresourcesefficientuse.ThisarticlemainlyintroducedthesearchenginefromthespecifiedWebpagelinksaccordingtothecollection,analysis,andaddthedatawhitchanalyticbyservicetothedatabase.Theusercanthroughtheclientsendsthesearchrequest,webserverfordatascreening,sort,finallythowtoclient.ForthecollectionoftheinformationofthemainlyadoptsHTMLanalyticaltechnology,throughtheiterativeanalyticalwaytocollectdatacontinuously.Thesearchengine'soverallframebasedontheMVCdesignmodel,useJSPtechnologyandstruts2technology.Usekeywordsmatchingalgorithmscreeningresults,searchresultsmatchingdegreeisgood.Initiallycompletedthesearchengine'sfunction.Keywords:search,database,JSP,struts2目录摘要...........................................................................2Abstract.......................................................................3第一章绪论..................................................................5第一节课题研究的目的和意义..............................................5第二节搜索引擎的现状与前景..............................................5一、搜索引擎的现状:.................................................5二、搜索引擎的前景:.................................................6第二章需求分析..............................................................6第一节开发背景..........................................................6第二节系统功能..........................................................6一、功能划分.........................................................6二、功能描述.........................................................6第三节相关技术及工具简介................................................7一、HTML语言简介....................................................7二、JavaScript语言简介..............................................7三、JSP简介.........................................................8四、Web开发轻平台-Tomcat简介.......................................8五、MYSQL数据库简介.................................................8第三章系统设计........................................................