曲阜师范大学校园网搜索引擎的设计与实现
原站著录信息
摘要
硕士学位论文 论文题目: 曲阜师范大学校园网搜索引擎的设计与实现 Design and Implementation on Intramural Engine in Qufu Normal University 目 录 摘 要 I ABSTRACT II 第1章 绪 论 1 1.1研究背景 1 1.2搜索引擎的发展 2 1.3 本文的主要工作 2 第2章 搜索引擎相关技术 4 2.1搜索引擎的工作原理 4 2.1.1页面采集模块的工作原理 5 2.1.2页面分析和建立索引 6 2.1.3数据检索模块的工作原理 8…
硕士学位论文
论文题目:
曲阜师范大学校园网搜索引擎的设计与实现
Design and Implementation on Intramural Engine in Qufu Normal University
目 录
摘 要 I
ABSTRACT II
第1章 绪 论 1
1.1研究背景 1
1.2搜索引擎的发展 2
1.3 本文的主要工作 2
第2章 搜索引擎相关技术 4
2.1搜索引擎的工作原理 4
2.1.1页面采集模块的工作原理 5
2.1.2页面分析和建立索引 6
2.1.3数据检索模块的工作原理 8
2.2开源搜索引擎—Nutch 10
第3章 系统需求分析与系统设计 12
3.1系统需求分析 12
3.2 系统设计图 14
3.3系统详细设计 16
3.3.1页面更新模块设计 16
3.3.2 索引模块设计 17
3.3.3搜索模块的设计 22
3.3.4页面去重模块的设计 24
3.4本章小结 26
第4章 系统的实现 27
4.1 开发平台 27
4.2 分布式平台的构建 27
4.2.1 MapReduce分布式处理模型 27
4.2.2 hadoop框架 28
4.2.3 hadoop的部署 29
4.3页面更新模块的实现 30
4.3.1批量式更新的实现 30
4.3.2增量式更新的实现 32
4.4中文分词的实现 34
4.5索引模块的实现 39
4.6搜索模块的实现 44
4.7面去重模块的实现 47
4.8户界面的实现 48
第5章 测试与系统性能分析 51
5.1分词器测试 51
5.2系统综合测试 52
第6章 总结与展望 54
参考文献 55
致谢 57
CONTENTS
Chinese abstract I
English abstract II
Chapter I Introduction 1
1.1 Background 1
1.2 Search Engine Development 2
1.3 Main work of this article 2
Chapter II Related technologies of search engine 4
2.1 Search engine works 4
2.1.1 Page collection module works 5
2.1.2 Page analysis and indexing 6
2.1.3 Data retrieval module works 8
2.2 Open-source search engine—Nutch 10
Chapter III Analyze and Design System Architecture 12
3.1 System Requirements Analysis 12
3.2 System design Flowchart 13
3.3 Detailed design of the system 15
3.3.1 Page updated module design 15
3.3.2 Index Module design 17
3.3.3 Search Module design 22
3.3.4 Eliminate the duplicated pages design 24
3.4 Chapter Summary 26
Chapter IV System implementation 27
4.1 Platform 27
4.2 Construc distributed platform 27
4.2.1 MapReduce distributed processing model 27
4.2.2 hadoop Framework 28
4.2.3 hadoop deployment 29
4.3 Page updated Module implement 30
4.3.1 Batch updates implement 30
4.3.2 Incremental updating implement 32
4.4 Chinese word Segementation implement 34
4.5 Index Module implement 39
4.6 Search Module implement 44
4.7 Eliminate the duplicated pages implement 47
4.8 User interface implement 48
Chapter V Test and analyze system performance 51
5.1 Word breaker Testing 51
5.2 System Integrated Test 52
Chapter VI Summary and Outlook 54
References 55
Thanks 57
摘 要
随着网络的迅猛发展,一些企业和校园内部局域网的信息量也大幅增长。人们发现即使是获取局域网的信息也变得困难。目前虽然己经有google、百度这些优秀的通用搜索引擎,但是它们并不能很好的解决这个问题。一方面,通用搜索引擎的覆盖率都不太高,很多局域网的信息都无法完全搜集;另一方面,通用搜索引擎的页面更新比较慢,信息的实时性、准确性都无法保证。因此,为了提高局域网内信息检索的效率,本文设计并实现了适用于局域网信息检索的小型搜索系统。
本文以曲阜师范大学校园网为平台,在深入研究了通用搜索引擎基本原理、,架构设计和核心技术的基础上,结合曲阜师范大学的实际需求,构建了一个运行稳定,性能良好且具有可扩展性的小型搜索引擎系统。论文不仅完成了对整个搜索引擎系统框架的设计,而且基本上完成了所有的开发测试工作。
本文论述了系统开发的背景和国内外搜索引擎技术发展现状,分析了小型搜索系统的需求,明确了系统开发过程中要解决的问题,提出了具体的设计方案。论文的主要工作以及创新如下
1. 详细论述系统需求、系统设计原则和目标,明确了系统功能,设计出详细的系统流程图。
2. 研究了网络蜘蛛页面采集原理与算法,完成了对本地页面集批量更新;采用了权威页面算法,及时发现并抓取网络中出现的新鲜页面,进一步提高了信息的实时性。
3. 设计并实现了页面的解析模块,以到达提取文本内容的目的,方便索引。
4. 针对搜索结果中出现大量的重复页面的问题,研究了MD5算法实现对索引中重复页面的消除,部分优化了搜索结果
5. 设计了简洁实用的用户界面,并对系统进行了测试和性能分析。
关键词:搜索引擎;校园网;nutch;网络爬虫;Lucene
ABSTRACT
With the rapid development of the network, the information on the intranet of enterprises and campus increased significantly.People found that it has become difficult to get the information on the LAN. Although there have been many outstanding general search engines such as Google and Baidu, there are not good enough to solve the problem. On the one hand, the general search engines do not cover enough informantion, the on the LAN is not fully collected, on the other hand, the pages searched by general search engine updated nore slowly, the efficiency and accuracy of information are not guaranted, therefore, in order to improve the efficiency of information retrieval on the LAN, we designed and implemented a small-scale information retrieval system adjusted to the LAN.
Based on the Qufu Normal University net work, the paper designed a stable, good performance and scalable small search engine system after a deep study on the basic tenets, structure design and the core technologies of the general search engines, as well as the basis of the individual needs of small-scale search engines. This pager not only completed the framework of the entire search engine system design, but also essentially completed all the development and testing.
This paper discussed the background and development of the search engine technology at home and abroad, analyzed the Qufu Normal University’s needs of a small search system, made clear the problems in the process of developing a system, and put forward a specific design. The main work and innovative points as follows:
1. Discussed system requirements, system design principles and objectives in detail, defined system function clearly, designed the detailed system flowchart.
2. This page researched the theory and algorithms of the Web Crawler page captureing, completed updating the local page set in bulk ; used the authoritative page algorithms, detect and snatch at the appeard fresh pages of the Web in time, enhance the real-time capability of information further.
3. Parsing module of the page had been designed and implemented, in order to extract the text content, facilitate indexing.
4. In order to solve the problem of a large number of the duplicated pages in the search results, this paper studied the MD5 algorithm which eliminate the duplicated pages in the index ,optimized the search results partly.
5. We designed a simple and practical user
