摘 要
通過搜索引擎從互聯(lián)網(wǎng)上獲取有用信息已經(jīng)成為人們生活的重要組成部分,Lucene是構(gòu)建搜索引擎的其中一種方式。搜索引擎系統(tǒng)是在.Net平臺上用C#開發(fā)的,數(shù)據(jù)庫是MSSQL Server 2000。主要完成的功能有:用爬蟲抓取網(wǎng)頁;獲取有效信息放入數(shù)據(jù)庫;通過Lucene建立索引;對簡單關(guān)鍵字進(jìn)行搜索;使用Ajax的局部刷新頁面展示結(jié)果。
論文詳細(xì)說明了系統(tǒng)開發(fā)的背景,開發(fā)環(huán)境,系統(tǒng)的需求分析,以及功能的設(shè)計與實(shí)現(xiàn)。同時講述了搜索引擎的原理,系統(tǒng)功能,并探討使用Ajax與服務(wù)器進(jìn)行數(shù)據(jù)異步交互,從而改善現(xiàn)有的Web應(yīng)用模式。
關(guān)鍵詞:Lucene.net;異步更新;Ajax;搜索引擎
The Design and Implementation for Constructing the Search Engine with Ajax and Lucene
Abstract
Obtaining useful information from web by search engines has become the important part of people's lives. Lucene is the way of constructing search engine. This system is based on the .Net platform using C#. The database is MSSQL Server 2000. Main functions are grasping web pages with crawls, adding effective information to the database, establishing index with Lucene, searching through keywords, and displaying the results finally.
This paper has showed the principle of search engine in the form of different modules, functions of this system, improving traditional web application model using Ajax. It shows explanation of the system’s background, development environment, system analysis of demanding, and functions of design.