摘要
针对搜索引擎搜索索引大小不同时的效率不一致问题,文中在Hadoop分布式计算平台上利用Map-Reduce框架搭建分布式的搜索引擎及查询子系统,生成一种改进的自适应性切换搜索算法,以索引文件实现了高效的检索,索引文件较小时将其直接存入内存,索引文件较大时建立二级索引并读取内存中的索引列表,进行分布式的查询,通过设置足够多的集群的节点数进行测试。测试结果表明:当索引大小达到1000 MB,搜索时间由原始搜索算法的16.631 s缩短至7.259 s,文中方法对索引文件的搜索效率有显著提高。在索引文件更大的情况下,文中算法的优势也更明显,从而可以为网络论坛、网站以及其他用户提供高效的分布式搜索服务。
A search engine has different efficiency for different search index size.In order to solve this problem,the distributed search engine and query subsystem are built on the Hadoop distributed computing platform,generating an improved adaptive switch search algorithm.The algorithm implements efficient retrieval based on the index size.When the index file is small,it is directly stored in the memory.When the index file is large,the secondary index is established and the index list in the memory is read.Then the distributed query is performed.The number of nodes in multiple clusters is tested.The results show that when the index size reaches 1000 MB,the search time is reduced to 7.259 s from 16.631 s of the original search algorithm,indicating that the search efficiency of the proposed algorithm is significantly improved.For the much larger index files,the algorithm has obvious advantages,which can provide efficient distributed search services for web forums,websites and other users.
作者
吴雨晨
刘萍萍
徐江涛
WU Yuchen;LIU Pingping;XU Jiangtao(School of Computer Science and Engineering,Xi’an Technological University,Xi’an 710021,China)
出处
《西安工业大学学报》
CAS
2019年第6期688-695,共8页
Journal of Xi’an Technological University
基金
新型网络与检测控制国家地方联合工程实验室基金项目(GSYSJ20170009)