简体   繁体   English

Elasticsearch或Lucene

[英]Elasticsearch or Lucene

I understood Elasticsearch is built around Lucene but I cannot understand exactly what is the added value of Elasticsearch. 我知道Elasticsearch是围绕Lucene构建的,但我无法准确理解Elasticsearch的附加值是什么。

I would like to add a 'Global search' box in my asp.net mvc app, I wonder if I have to use Elasticearch or directly Lucene/Lucene.net.. 我想在我的asp.net mvc应用程序中添加一个“全局搜索”框,我想知道我是否必须使用Elasticearch或直接使用Lucene / Lucene.net ..

Thanks for helping my to understand. 谢谢你帮助我理解。

Lucene is a search library written in Java. Lucene是一个用Java编写的搜索库。 ElasticSearch is a server build around the Lucene library and allows you to interact with Lucene through an easy to use HTTP interface. ElasticSearch是围绕Lucene库构建的服务器,允许您通过易于使用的HTTP接口与Lucene进行交互。

You can use Lucene directly in your application but you will need to cover a lot of integration ground work. 您可以直接在您的应用程序中使用Lucene,但您需要涵盖许多集成基础工作。 By using ElasticSearch (or Solr for that matter) a lot of the integration work is taken care of and you can use the search technology in a decoupled manner since the search aspect will run in an independent server environment. 通过使用ElasticSearch(或者Solr),很多集成工作都得到了解决,您可以以解耦的方式使用搜索技术,因为搜索方面将在独立的服务器环境中运行。

Elasticsearch will scale better than the original Lucene. Elasticsearch将比原来的Lucene更好地扩展。 Elasticsearch does add formidable sharding and replication to Lucene for one (so too does Solr). Elasticsearch确实为Lucene添加了强大的分片和复制功能(Solr也是如此)。

FTS techs such as Solr/Elasticsearch always just use Lucene as the core, adding their own optimizations on top. 像Solr / Elasticsearch这样的FTS技术人员总是只使用Lucene作为核心,在顶部添加他们自己的优化。

SO (this site) used to use Lucene before turning to Elasticsearch. 在转向Elasticsearch之前,SO(本网站)曾经使用过Lucene。 Their site used to crash once every so often when it came to reindexing time, as far as I can tell since moving to Elasticsearch it hasn't. 他们的网站经常在重新索引时间时经常崩溃一次,据我所知,自从转移到Elasticsearch以来它没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM