Lucene 和 Elasticsearch 有什么区别 [英] What is the difference between Lucene and Elasticsearch

查看:20
本文介绍了Lucene 和 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 是一个基于 JSON分布式Web 服务器 构建于 Lucene 之上的服务器.虽然是 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

  1. Elasticsearch 基于 Lucene 构建,并提供 基于 JSON 的 REST API 来引用 Lucene 功能.
  2. Elasticsearch 在 Lucene 之上提供了一个分布式系统.分布式系统不是 Lucene 了解或构建的.Elasticsearch 提供了这种分布式结构的抽象.
  3. Elasticsearch 提供其他支持功能,如线程池、队列、节点/集群监控 API、数据监控 API、集群管理等.

这篇关于Lucene 和 Elasticsearch 有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆