Lucene和Elasticsearch有什么区别 [英] What is the difference between Lucene and Elasticsearch
问题描述
我知道ElasticSearch是基于Apache Lucene构建的,但是我想知道两者之间的显着差异.
I know ElasticSearch is built upon Apache Lucene but I want to know the significant differences between the two.
推荐答案
Lucene是 Java库 . 您可以将其包含在您的项目中,并使用函数调用来引用其功能.
Lucene is a Java library. You can include it in your project and refer to its functions using function calls.
Elasticsearch是基于Lucene构建的基于 JSON 的分布式,网络服务器. 尽管是Lucene在做下面的实际工作,但是Elasticsearch为我们提供了一个在Lucene之上的便利层.在Elasticsearch中创建的每个碎片都是一个单独的Lucene实例. 总结一下
Elasticsearch is a JSON Based, Distributed, web server built over Lucene. Though it's Lucene who is doing the actual work beneath, Elasticsearch provides us a convenient layer over Lucene. Each shard that gets created in Elasticsearch is a separate Lucene instance. So to summarize
- Elasticsearch是基于Lucene构建的,并提供了 基于JSON的REST API 来引用Lucene功能.
- Elasticsearch在Lucene之上提供了 分布式系统 . Lucene并没有意识到分布式系统的存在. Elasticsearch提供了这种分布式结构的抽象.
- Elasticsearch提供其他支持功能,例如线程池,队列,节点/集群监视API,数据监视API,集群管理等.
这篇关于Lucene和Elasticsearch有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!