摘 要
通過搜索引擎從互聯網上獲取有用信息已經成為人們生活的重要組成部分,Lucene是構建搜索引擎的其中一種方式。搜索引擎系統是在.Net平臺上用C#開發的,數據庫是MSSQL Server 2000。主要完成的功能有:用爬蟲抓取網頁;獲取有效信息放入數據庫;通過Lucene建立索引;對簡單關鍵字進行搜索;使用Ajax的局部刷新頁面展示結果。
論文詳細說明了系統開發的背景,開發環境,系統的需求分析,以及功能的設計與實現。同時講述了搜索引擎的原理,系統功能,并探討使用Ajax與服務器進行數據異步交互,從而改善現有的Web應用模式。
關鍵詞: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.