Research and Implementation on Search Engine Based on RSS

Author
QiJing
Advisor
HeFengLing
School
Jilin University
Major
Applied Computer Technology
Classification
TP391.3 Retrieval machine
Degree
Master's thesis
Year
2006
Downloads
549
Citations
5

Request the full text

Abstract

The application of RSS norm is more and more extensive, for examplethe Blog, the aggregation of news etc all follow RSS norm, to search for thesecontents is also a very important need by all means in the future.Currentsearch engine to search this kind of contents that is released with RSS seedform have not a good result. With current search engine to search thesecontents,the efficiency is low, the speed of update is slow. but the searchengine based on RSS overcome these weaknesses, carries out high-efficiencyand high speed to search for this kind of page which releases with RSS seed,so the search engine based on RSS is necessary.Here we concentrated on thekey technique and arithmetic of the search engine based on RSS, Researchand implement the search engine based on RSS.First, Introduced the basic concept and main technique of the searchengine based on RSS, and the differentiation between it and the current searchengine.second researched on the spider and how to collect RSS seed.Then,introduced RSS norm,studied the main technique of parsing of the RSS seed.Then, studied the parsing of RSS seed and the establishment of index for thetext, and the key technique in the period.Finally, discussed some problemsinvolved in the search process, and how to sort the result.The paper mainly includes works on four subjects:1. RSS spider and the collection of RSS seedThe program of the RSS Spider uses Socket to establish conjunction withWeb server, uses HTTP protocol to visit the wedsite, it starts from 1 or a fewsimple pages, and analyze the pages, pick-up the hyperlink in the page, get toother pages which the hyperlink points, the Spider program then visits thoseWeb pages, repeated this process, until there is no new index of page appear,this procedure just stop. During this period,we find out RSS seed according tothe MIME type of the link, if the MIME type is text/xml ,we can useRSSParser to parse the page, if it can be successfully parsed ,this explains thatit is a RSS seed, then we keep it in the RSS seed database.2. RSS norm and parsing of RSS seedIntroduced RSS norm(Really Simple Syndication) first. RSS is a kindof format of the Internet associated release system, it provided a simple andstandard norm to announce the contents in the website.With more and morewebsite supporting the RSS, the RSS has already become the most successfulapplication of XML currently, the typical applications includes RSSaggregation of news and Blog.Because the RSS seed adopts the XML norm, the processof parsing it issimilar to that of general XML document.The resolution of general XMLdocument has two kinds of methods:DOM(Document of the object model)and SAX.( Simple API for XML)These two kinds of methods all can handleXML document, but there is dissimilarity between the two processes ,theyhave different efficiencies.We used the SAX method to parse RSS seed in thispaper.The SAX optimized for handling large files and that with highthruput.SAX is a analyzer based on affairs, it reads the document and directlyreportsthe analysis affairs(for example the beginning and the ending of theelement) to the application.The application that the customer established canhandle different affairs.This kind of advantage is similar to the flowingmedium, the parsing can start immediately, without waiting for all datas havebeen handled.And, because the application checks data just while reading thedata, so we don’t need to save the data in the memory. That is a hugeadvantage for large documents.In the XML analyzer, the affairs has somethingto do with the element in the XML document which is being readed.For thefollowing affairs:The element begining and ending labels, the elementcontents, entity, analytical mistake etc.. Implement Handler to process affairs,then call the program of SAXParser .At the time of parsing RSS seed, SAXparser send the beginning and ending affairs of the label as channel, item, link,title, description etc to the Handler, the Handler pick-up the attribute of thelabel, modeling the data structure of the document, consequently parse theseed.3.The parsing of RSS seed and the building up index of documentThe parsing of the page is one of the important part of the engine, its roleis to parse RSS seed, carrying on basic document processing and building upindex.First, because we only parse RSS seed, particularly the item in the RSSseed-it points to an document in Internet, we use RSSParser to pickup theinformation of the item as link, title, description etc., and make the label of theinformation as the label which surround the text(they embellish the text, theweight of the text can be computed through them) . In fact the process ofparsing the document is picking up the vocabulary in the item in the RSS seed,and record label which embellish the vocabulary, such as the important labelincluding <title><link><description> etc.and put a weight for each of thelabel, and do unitary process, then the weight in the document of the textwhich is surrounded by the label increases accordingly.Secondly, we handled English words in traditional vocabulary picking uptechnique in this paper, using Chinese segment technique to handle Chinesesentence.The English vocabulary picking up has a perfect way, we used thePorterStemer here.The problem that Chinese segment mainly resolves is tosegment a sentence because there is no boundary between Chinese phrases,moreover there is a great deal of ambiguity phenomenon in the Chineselanguage, there may be a lot of kind results to segment a few words indifferent ways.In this paper we used the Chinese segment technique based onrules.Finally, the index implement create a aggregate of each exclusive wordand its weight, it can represent a document, being called the vector ofdocument, this model is called document vector model.Index implement savethe document vector in the database, which is called frontad index, at the sametime,we made notes of each word and the document which include the word,and save the notes in database, which is called inverse index .In this way wecan find out documents quickly.4. Search and the sorting of the resultAfter the system builded up the index ,it can respond to customers’search, it implemented by the search process.The process of searching is asfollows:(1)Search analysis(2)The English word picking up and Chinese segment(3)Convert the word to the ID of the word, and create search vector(4)Take a word from the search vector, search the document whichcontains the word in the document vector model, and create documentvector(5)Compute the similar degree between search vector and documentvector, get the score of the document(6)Repeated step(4), until the search vector processing completes(7)sort the document according to the score which it got, return k ofthem as the results.Because there is a great quantitie of document which contains the keyword, it becames more and more important to sort the results.There are a lot ofmethods to sort the results, among them, the main ways are vector similardegree arithmetic, PageRank arithmetic and HITS arithmetic, in this paper weused vector similar degree arithmetic.In the vector model, if the information obtaining system involve n ofkeyword, then build up the vector space of n dimension, each dimensionrepresents a different keyword,both of the text in the information database andthe customers’ searches can be denoted with the vector in the space.Thedocument vector is a n unit set, among them each coordinate is denoted byweight of the corresponding keyword.The weight of the word in the documentis based on the frequency that the word appears in the document.For examplekeyword w’s weight in i document is defined as follows:∑==WikkikwiwfNnfNn122()(lg(/))weight(w,i)lg(/)Search vector is similar to document vector,only the weight of searchvector means the for customer important degree of the keyword which thesearch vector contains, generally speaking the weight of 1 means an expectingto appear word, 0 means not to expect to appear word.After knowing thedocument vector and search vector,we can compute the similar degreebetween the document vector and the search vector.There are a lot of methodsto compute the similar degrees.For a search vector of q which contains n wordand document vector of d , their similar degree can be computed with thefollowing formula:∑∑∑====niiniiniiiqrqdsimilarityqd12121()(,)

Table of contents

Chapter prodrome 8-13 1.1 Overview of search engine 8-11 1.2 RSS search engine Overview 11-12 1.3 herein do the work 12-13 Chapter II site crawling and RSS feeds collected 13-19 2.1 RSS and non-RSS sites crawling 13 2.2 using HTTP to access the RSS sites 13-17 2.3 RSS seed collection 17-18 2.4 Summary 18-19 Chapter XML RSS specification 19-28 3.1 an XML specification 19-22 3.2 RSS specification 22-25 the 3.3 RSS seeds resolve 25-27 3.4 Summary 27-28 Chapter RSS document parsing and document indexing 28-36 4.1 the RSS document parsing 28 4.2 RSS document (Item) text processing 28-30 4.3 RSS document (Item) title and summary of the Chinese word 30-34 4.4 RSS search engine The document model 34-35 4.5 documentation index 35 4.6 Summary 35-36 Chapter RSS search services and results Sort the 36-40 5.1 search process 36 5.2 search results ranking method 36-37 5.3 vector similarity algorithm 37-38 < br /> 5.4 PageRank algorithm 38 5.5 Summary 38-40 Chapter RSS Search System Design and Implementation 40-52 6.1 RSS search engine system structure the 40-41 6.2 RSS seed collector design and realization 41-42 6.3 the RSS seeds parser of Design and Implementation 42 - Design and Implementation of 44 6.4 parser and indexer the 44-46 6.5 search and results sorted Design and realization 46-48 6.6 data access objects 48-49 6.7 system platform 49-52 Chapter VII Conclusion the 52-54 7.1 Conclusion 52 7.2 Future Work to References 52-54 54-55 Chinese Abstract 55-58 ABSTRACT 58 -62 Acknowledgements 62-63 instructor and author are found; 63

Related dissertations

  1. Research of Junk Filtering Algorithm Based on Naive Bayesian of Accumulating Knowledge
    WangHui ·Hunan University ·2013 ·Master's thesis
  2. The Design and Implementation of Spam Email Filtering Technology Based on Content Analysis
  3. Research and Implementation of Academic Search Engine Based on Nutch
    XiaShuZuo ·Northeastern University ·2011 ·Master's thesis
  4. Research on Text Classification Methods Based on Content and Emotion
  5. Based on the the Text Sentiment Network Public Opinion Analysis System
    LiuAnHua ·Hunan University ·2013 ·Master's thesis
  6. Research on Chinese Word Segmentation Technology with Word Length and Rule Algrithm
  7. Research of Web Text Segmentation Based on Corpus Classification
  8. Research and Implementation of Chinese Word Segmentation Technology Based on Lucene
  9. Research on Full-Text Clustering Analysis and Information Extraction of Geological Data
  10. The Research and Design of the Search System of Mobilephone Based on Android Platform
    ZhangHaiJiang ·Zhejiang Normal University ·2013 ·Master's thesis
  11. Research and Design of Automatic Abstract System for Teaching Resources
    ZhangRuiLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  12. Research and Implementation on Corresponding Method between Chinese Name of Transportation Data and Standard Terminology
    LiNanNan ·Chang'an University ·2013 ·Master's thesis
  13. Research on Chinese Web Information Retrieval of Model Based on Statistical Language
    LiZhen ·Central China Normal University ·2012 ·Master's thesis
  14. Research and Implementation of the Graduate Admissions Counseling Intelligent Chat Robot Based on Alice
    FengDeHu ·Southwest Jiaotong University ·2013 ·Master's thesis
  15. The Mining Ontology-based Research on the Relationship of Scientific Network
    ZhaoLiJuan ·Shandong Normal University ·2012 ·Master's thesis
  16. Research for Chinese New Word Identification Based on Context-aware
    TuWei ·Zhengzhou University ·2012 ·Master's thesis
  17. The Research and Design of Intelligent Chinese Search Engine Used in Sakai
  18. Research and implementation of Chinese segmentation algorithm based on Ontology
    DiaoZuo ·Qufu Normal University ·2012 ·Master's thesis
  19. Study on Extension of Unknown Words Based on Cyber Source
    GuoZuoZuo ·Anhui University ·2012 ·Master's thesis
  20. Research and Realization of Chinese Vertical Search Technology