For faster navigation, this Iframe is preloading the Wikiwand page for Lucene.

Lucene

Lucene
开发者Apache软件基金会
首次发布1999年,​25年前​(1999
当前版本
  • 9.11.0 (2024年6月6日;稳定版本)[1]
编辑维基数据链接
原始码库 编辑维基数据链接
编程语言Java
操作系统跨平台
类型搜索全文检索
许可协议Apache许可证 2.0
网站lucene.apache.org

Lucene是一套用于全文检索搜索开放原始码程序库,由Apache软件基金会支持和提供。Lucene提供了一个简单却强大的应用程序接口,能够做全文索引和搜索。Lucene被广泛应用作搜索应用的标准基础库[2][3][4]

Lucene现已被移植到其他编程语言,包括Object PascalPerlC#C++PythonRubyPHP[5]

历史

Doug Cutting在1999年编写了Lucene[6],他是一位资深的全文索引及检索专家,曾经是V-Twin搜索引擎的主要开发者,后来在Excite担任高级系统架构设计师,目前从事于一些互联网底层架构的研究。他贡献出Lucene的目标是为各种中小型应用程式加入全文检索功能。Lucene最初可以从SourceForge网站的主页下载,它于2001年9月加入Apache软件基金会的Jakarta开源Java产品家族,并于2005年2月成为独立的顶级Apache项目。Lucene这个名字是Doug Cutting妻子的中间名,也是她外祖母的名字[7]

Lucene以前包含了许多子项目,例如 Lucene.NET、Mahout、Tika and Nutch。这三个现在已经成为了独立的顶级Apache项目。

2010年3月,Apache Solr搜索伺服器作为Lucene子项目加入,合并了开发者社区。

4.0版于2012年10月12日发布[8]

2021年3月,Lucene更改了logo,Apache Solr再次成为顶级Apache项目,独立于 Lucene。

功能和常见用途

虽然理论上Lucene适用于任何需要全文索引和搜索功能的应用程式,但其主要是因为在Internet搜索引擎和本地单站点搜索实现中的实用性而受到认可[9][10]

Lucene包含了基于编辑距离执行模糊搜索的功能[11]

Lucene也被用于实现推荐系统[12]。例如,Lucene的'MoreLikeThis'类可以生成相似文档的推荐。在将“MoreLikeThis”基于向量的相似性方法与基于引用的文档相似性度量(例如共引和共引邻近度分析)进行比较时,Lucene的方法在推荐具有非常相似的结构特征和更窄相关性的文档上表现出色[13]。相比之下,基于引用的文档相似性度量往往更适合推荐更广泛相关的文档[13]

基于Lucene的项目

Lucene本身只是一个索引和搜索库,不包含爬取和HTML解析功能。但是,以下的项目扩展了Lucene的功能:

  • Apache Nutch — 提供成熟可用的网络爬虫[14]
  • Apache Solr — 基于Lucene核心的高性能搜索伺服器,提供JSON/Python/Ruby API[15]
  • Compass – Elasticsearch的前身[16]
  • CrateDB – 基于Lucene构建的开源分布式SQL数据库[17]
  • DocFetcher — 跨平台的本机文件搜索桌面程序[来源请求][18]
  • Elasticsearch —企业搜索平台,目的是组织数据并使其易于获取[19]
  • Kinosearch – 用PerlC语言[20]实现的搜索引擎与Lucene的移植[21]。Socialtext wiki[20]和MojoMojo wiki均使用了这一搜索引擎[22]。 它在人类代谢物组数据库(HMDB)[23] 和毒素与毒素目标数据库(T3DB)[24]中亦有应用。
  • MongoDB Atlas Search – 基于MongoDB和Apache Lucene的云原生企业搜索应用程式
  • OpenSearch – 基于Elasticsearch 7的开源企业级搜索伺服器
  • Swiftype — 基于Lucene的企业级搜索[25]
  • Lucene.NET — 提供给.Net平台用户的Lucene类库的封装[26]
  • Apache Lucy — 为动态语言提供全文搜索的能力,是Lucene Java 库的C接口[27]
  • Luke — Java编写的用户界面用于编辑Lucene的索引,此项目已停止开发[28]

参见

  • Solr - 使用Lucene的企业搜索伺服器,亦由Apache软件基金会所研发。

参考资料

  1. ^ Release 9.11.0. 2024年6月6日 [2024年6月20日]. 
  2. ^ Kamphuis, Chris; de Vries, Arjen P.; Boytsov, Leonid; Lin, Jimmy, Jose, Joemon M.; Yilmaz, Emine; Magalhães, João; Castells, Pablo , 编, Which BM25 Do You Mean? A Large-Scale Reproducibility Study of Scoring Variants, Advances in Information Retrieval (Cham: Springer International Publishing), 2020, 12036: 28–34 [2021-06-07], ISBN 978-3-030-45441-8, PMC 7148026可免费查阅, doi:10.1007/978-3-030-45442-5_4 (英语) 
  3. ^ Grand, Adrien; Muir, Robert; Ferenczi, Jim; Lin, Jimmy, Jose, Joemon M.; Yilmaz, Emine; Magalhães, João; Castells, Pablo , 编, From MAXSCORE to Block-Max Wand: The Story of How Lucene Significantly Improved Query Evaluation Performance, Advances in Information Retrieval (Cham: Springer International Publishing), 2020, 12036: 20–27 [2021-06-07], ISBN 978-3-030-45441-8, PMC 7148045可免费查阅, doi:10.1007/978-3-030-45442-5_3 (英语) 
  4. ^ Azzopardi, Leif; Moshfeghi, Yashar; Halvey, Martin; Alkhawaldeh, Rami S.; Balog, Krisztian; Di Buccio, Emanuele; Ceccarelli, Diego; Fernández-Luna, Juan M.; Hull, Charlie; Mannix, Jake; Palchowdhury, Sauparna. Lucene4IR: Developing Information Retrieval Evaluation Resources using Lucene. ACM SIGIR Forum. 2017-02-14, 50 (2): 58–75 [2022-07-25]. ISSN 0163-5840. doi:10.1145/3053408.3053421. (原始内容存档于2022-07-28) (英语). 
  5. ^ LuceneImplementations. apache.org. [23 September 2015]. (原始内容存档于6 October 2015). 
  6. ^ KeywordAnalyzer Better Search with Apache Lucene and Solr (PDF). 19 November 2007. (原始内容 (PDF)存档于31 January 2012). 
  7. ^ Barker, Deane. Web Content Management. O'Reilly. 2016: 233. ISBN 978-1491908105. 
  8. ^ Apache Lucene - Welcome to Apache Lucene. apache.org. [4 February 2016]. (原始内容存档于4 February 2016). 
  9. ^ McCandless, Michael; Hatcher, Erik; Gospodnetić, Otis. Lucene in Action, Second Edition有限度免费查阅,超限则需付费订阅. Manning. 2010: 8. ISBN 978-1933988177. 
  10. ^ GNU/Linux Semantic Storage System (PDF). glscube.org. (原始内容 (PDF)存档于2010-06-01). 
  11. ^ Apache Lucene - Query Parser Syntax. lucene.apache.org. (原始内容存档于2017-05-02). 
  12. ^ J. Beel, S. Langer, and B. Gipp, “The Architecture and Datasets of Docear’s Research Paper Recommender System,” in Proceedings of the 3rd International Workshop on Mining Scientific Publications (WOSP 2014) at the ACM/IEEE Joint Conference on Digital Libraries (JCDL 2014), London, UK, 2014
  13. ^ 13.0 13.1 M. Schwarzer, M. Schubotz, N. Meuschke, C. Breitinger, V. Markl, and B. Gipp, https://www.gipp.com/wp-content/papercite-data/pdf/schwarzer2016.pdf页面存档备份,存于互联网档案馆) "Evaluating Link-based Recommendations for Wikipedia" in Proceedings of the 16th ACM/IEEE-CS Joint Conference on Digital Libraries (JCDL), New York, NY, USA, 2016, pp. 191-200.
  14. ^ dev@Nutch.apache.org. Apache Nutch™ -. nutch.apache.org. [2016-11-29]. (原始内容存档于2021-01-26). 
  15. ^ What are the main differences between ElasticSearch, Apache Solr and SolrCloud? - Quora. quora.com. [23 September 2015]. 
  16. ^ The Future of Compass & Elasticsearch. the dude abides. [2015-10-14]. (原始内容存档于2015-10-15) (英语). 
  17. ^ Wayner, Peter. 11 cutting-edge databases worth exploring now. InfoWorld. [21 September 2015]. (原始内容存档于21 September 2015). 
  18. ^ Quang, Tran Nam. DocFetcher - Fast Document Search. docfetcher.sourceforge.net. [2016-11-29]. (原始内容存档于2021-01-13). 
  19. ^ Elasticsearch: RESTful, Distributed Search & Analytics - Elastic. elastic.co. [23 September 2015]. (原始内容存档于2015-09-21). 
  20. ^ 20.0 20.1 Natividad, Angela. Socialtext Updates Search, Goes Kino. CMS Wire. [2011-05-31]. (原始内容存档于2012-09-29). 
  21. ^ Marvin Humphrey. KinoSearch - Search engine library. - metacpan.org. p3rl.org. [23 September 2015]. 
  22. ^ Diment, Kieren; Trout, Matt S. Catalyst Cookbook. The Definitive Guide to Catalyst有限度免费查阅,超限则需付费订阅. Apress. 2009: 280. ISBN 978-1-4302-2365-8. 
  23. ^ Wishart, D. S.; et al. HMDB: a knowledgebase for the human metabolome. Nucleic Acids Res. January 2009, 37 (Database issue): D603–10. PMC 2686599可免费查阅. PMID 18953024. doi:10.1093/nar/gkn810. 
  24. ^ Lim, Emilia; Pon, Allison; Djoumbou, Yannick; Knox, Craig; Shrivastava, Savita; Guo, An Chi; Neveu, Vanessa; Wishart, David S. T3DB: a comprehensively annotated database of common toxins and their targets. Nucleic Acids Res. January 2010, 38 (Database issue): D781–6. PMC 2808899可免费查阅. PMID 19897546. doi:10.1093/nar/gkp934. 
  25. ^ Swiftype - Site search and enterprise search. Swiftype. [2016-11-29]. (原始内容存档于2021-02-05). 
  26. ^ Apache Lucene.Net. lucenenet.apache.org. [2016-11-29]. (原始内容存档于2020-12-31). 
  27. ^ Apache Lucy. lucy.apache.org. [2016-11-29]. (原始内容存档于2020-12-31). 
  28. ^ luke. GitHub. [2016-11-29]. (原始内容存档于2020-11-30). 

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
Lucene
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?