The Design and Implementation of General Search Engine in"Search-View" Design Pattern
- Author
- LiuYiZhou
- Advisor
- SuSen
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer Science and Technology
- Classification
- TP391.3 Retrieval machine
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 17
- Citations
- 0
Abstract
With the rapid development of the Internet, a large number of applications are developed, in order to satisfy the rising requirements from users. When a new oppotunity comes, before similar applications’ large eruption, the first released application often becomes the leading application in this field. Therefore the development speed is the key to Internet Application Providers and Software Vendors. In order to make the application’s time to market as short as possible, to reduce the development process and its cost, developers often select professional third parties’ capability components.This paper first studied MVC software development pattern. In order to solve some MVC’s problems, e.g. high learning cost, complicated abstract, this paper puts forward the "Search-View" design pattern, and the corresponding Generic Search Engine (GSE).In the "Search-View" pattern, applications use interfaces, which are provided by GSE, similar to those of the traditional search engine to get the data and are responsible for the rendering. GSE provides the abilities of dealing with document contents, tag labels and scores, allows applications to post original data via interfaces, and also supports searching with structured queries and getting the results. The introduction of GSE reduce the development process and cost obviously. GSE is more adapt to current application development requirements, due to its scalability.GSE consists of word segmentation module, merge module, inverted index storage module, sort module and interface module. To evaluate the performance of real-time index system, this paper fulfills a performance test on inverted index module, and makes the compare between the performance of the implementation of Lucene and the implementation based on MySQL. In the end, this paper also presents an application example based on GSE and followed "Search-View" design pattern, to verify the design and implementation brought forward in this paper.
Table of contents
Summary 4-5
ABSTRACT 5-11
first chapter 11-13
1.1 Background 11-12
1.2 research 12
1.3 thesis structure 12-13
The second chapter introduces the research background 13-26
2.1 MVC 13-14
2.2 data Format Description 14-15
2.2.1 JSON 14
2.2.2 XML 14-15 <br / > 2.3 search engine-related technologies 15-20
2.3.1 full text search 15
2.3.2 inverted index 15-17
2.3 .3 Chinese word / natural language processing 17-18
2.3.4 correlation calculation 18-20
2.4 open source search engine introduced 20-21
2.4.1 Lucene 20
2.4.2 Solr 20-21
2.4.3 Nutch 21
2.4.4 Sphinx 21
2.5 hash algorithm -MD5 21-24
2.6 HTTP -based RESTful interface brief 24-26
Chapter III \Search-View) \ 26-27
3.1.3 demand research 27-29
3.2 interface definition 29
3.2.1 data Abstraction 29
3.2.2 Interface primitives 29
3.3 using flow 29-31
3.3.1 scene description 30
3.3.2 released topic posts 30
3.3.3 comments topic posts 30
3.3.4 the topic posts into a directory 30-31
3.3. 5 tours topic posts 31
3.3.6 visits by tour directory 31
3.3.7 tours by review directory 31
3.3.8 created by tour directory 31
3.3.9 from topic posts Search 31
3.3.10 from the discussion thread search 31
3.3.11 from discussion topic posts or posts Search 31
3.4 Summary 31-32
Chapter IV open search engine 32-69
4.1 system Design 32-34
4.1.1 system Architecture 32
4.1.2 search process 32-33
4.1.3 index storage process 33-34
4.2 data structure definitions 34-37
4.2.1 documentation 34-35
4.2.2 tag and inverted index 35-36
4.2.3 contains an index / label document index entries 36-37
4.3 Segmentation module design and implementation 37-40
4.3.1 function Description 37
4.3.2 Interface Description 37
4.3.3 detailed design 37-40
4.4 merge filter module design and implementation 40-44
4.4.1 Description and analysis 40-41
4.4.2 Interface Description 41
4.4.3 or mode detailed design 41-42
4.4.4 detailed design and model 42
4.4.5 merge filter external interfaces detailed design 42-44
4.5 index storage module design and achieve 44-50
4.5.1 Description 44
4.5.2 Interface Description 44-45
4.5.3 nbsp selected for storage ; 45-47
4.5.4 nbsp MySQL -based database design database ; 47-48
4.5.5 based on the detailed design nbsp MySQL database ; 48-50
4.6 sorting module design and implementation 50-54
4.6.1 Description 50-51
4.6.2 Interface Description 51-52
4.6 .3 ascending and descending sorting is 52-53
4.6.4 created or updated in accordance with document sorting design 53
4.6.5 design sorted according to relevance 53-54
4.6.6 user rating Sort according to design 54
4.7 interface module design and implementation 54-63
4.7.1 Description 55
4.7.2 All RESTful interface description 55-56
4.7.3 update document detailed design 56-57
4.7.4 Search Details design 57-63
4.8 FreeSearch use design 63-65
4.8.1 FreeSearch call interface for Java package 63-64
4.8.2 part of the interface implementation 64-65
4.9 inverted index performance test 65-67
4.9.1 testing program 66
4.9 .2 write performance index 66-67
4.9.3 index read performance 67
4.9.4 performance test Summary 67
4.10 overall performance testing 67-69
Chapter sample application 69-75
5.1 FreeShare group -oriented knowledge management applications 69-70
5.2 FreeShare operating class SV design 70-72
5.2.1 release documentation 70
5.2.2 Creating a list of 70
5.2.3 Groups attribution 70-71
5.2.4 Group Dynamic 71
5.2.5 content Comments 71
5.2.6 Reply to comment 71-72
5.2.7 document or list access , praise , reviews sorted 72
5.3 FreeShare SV display class design 72-73
5.3.1 View Group Dynamic 72
5.3.2 See all the resources of a group 72
5.3.3 view a document or a list of all comments 72-73
5.3.4 users on the system full-text search 73
5.4 FreeShare contrasting 73-74
5.4.1 release documentation 73 <br / > 5.4.2 build group dynamics 73-74
5.4.3 in full-text retrieval system 74
5.4.4 View Group Dynamic 74
5.5 FreeShare SV model using summary 74-75
Chapter VI Conclusion 75-76
6.1 paper summarizes 75
6.2 under Previous research 75-76
References 76-77
Thanks 77-78
study for a degree of academic papers published during the directory 78
Related dissertations
- The Design and Implementation of Office Automation System for Beijing Lvyuanda Compressed Natural Gas Co.Ltd
- Content Indexing Search Engine Based on Lucene LAN Implementation
- Design and Implementation of Technical Standards Management System for Civil Airport
- Layered Component Based Embedded Real-time Software Framework Design
- Design and Implementation of the Network Video Vertical Search System Base on Lucene
- Research and Application on Real-Time Monitor System Based on J2EE
- Search Technology Portal platform
- Research and Design of Mobile Device Search Engine for Local Resource
- University BBS Retrieval System Design and Implementation
- Research and Implement of Moodle Semantic
- Research on the Performance of National Audit Results Announcement and Its Influencing Factors
- " Jinsui" Farmers Benefitial Card and Farmer Credit Loan Business Development Research
- Research on the Performance of Property Insurance Lines in China
- Study on Chinese Agricultural Futures Hedging Performance of Low Level
- Study of China’s Securities Industry Based on SCP Paradigm
- The Liquidity Effect on the Relationship between the Size and the Performance of the Equity Open-ended Fund
- An Empirical Study on the Performance of Chinese Mutual Funds
- The Study on the Development of Socially Responsible Investment Funds in China
- The Performance Analysis on the City Commercial Banks in China before and after the Listing
- Research on Performance Evaluation and Innovation of New-type Rural Financial Institutions