solr和lucene之间的区别 [英] Difference between solr and lucene

查看:139
本文介绍了solr和lucene之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Lucene和Solr是2个不同的 Apache项目,它们可以协同工作,但我不知道我不明白每个项目的目标是什么。

I know that Lucene and Solr are 2 differents Apache projects that are made to work together, but I don't understand what is the aim of each project.

据我所知,直到现在,Lucene用于创建搜索索引而Solr使用此索引执行搜索。
我是对的还是这是一种完全不同的方法?

For what I understood untill now is that Lucene is used to create a search index and Solr use this index to perform searches. Am I right or is this a totally different approach?

推荐答案

@darkheir:Lucene和Solr是两个不同的Apache项目,它们可以协同工作,我不明白每个项目的目标是什么。

@darkheir: Lucene and Solr are 2 differents Apache projects that are made to work together, I don't understand what is the aim of each project.

1)Solr在引擎盖下使用Lucene。 Lucene对Solr API一无所知。

1) Solr uses Lucene under the hood. Lucene has no clue about the Solr API.

2)Lucene是一个强大的搜索引擎框架,可以让我们为我们的应用程序添加搜索功能。它公开了一个易于使用的API,同时隐藏了所有与搜索相关的复杂操作。任何应用程序都可以使用这个库,而不仅仅是Solr。

2) Lucene is a powerful search engine framework that lets us add search capability to our application. It exposes an easy-to-use API while hiding all the search-related complex operations. Any application can use this library, not just Solr.

3)Solr是围绕Lucene构建的。它不仅仅是Lucene的一个http包装器,但已经知道为Lucene添加更多武器< /强> 。 Solr即用即用。除了Lucene提供的功能之外,它还是一个提供相关基础架构和更多功能的Web应用程序。

3) Solr is built around Lucene. It is not just an http-wrapper around Lucene but has been known to add more arsenal to Lucene. Solr is ready-to-use out of box. It is a web application that offers related infrastructure and a lot more features in addition to what Lucene offers.

@darkheir:Lucene用于创建搜索索引和Solr使用此索引执行搜索。我是对的还是这是一种完全不同的方法?

@darkheir: Lucene is used to create a search index and Solr use this index to perform searches. Am I right or is this a totally different approach?

4) Lucene不只是创建消费指数作者:Solr 。 Lucene处理所有与搜索相关的操作。任何应用程序都可以使用Lucene框架。

4) Lucene doesn't just create the Index for the consumption by Solr. Lucene handles all the search related operations. Any application can use the Lucene framework.

例如Solr,弹性搜索,LinkedIn(是的,引擎盖下)等。

Examples are Solr, Elastic Search, LinkedIn (yes, under the hood), etc..

检查超出这篇文章: Lucene vs Solr

更新(2014年6月18日)

何时使用Lucene?


  • 您是一名搜索工程师并且

  • 您是程序员并且

  • 您希望完全控制Lucene的所有内部和

  • 您的要求要求您对Lucene进行各种令人讨厌的自定义和

  • 您愿意照顾搜索的基础设施元素,如缩放,分发等。

  • You are a search engineer AND
  • You are a programmer AND
  • You want full control over almost all the internals of Lucene AND
  • Your requirements demand you to do all sorts of geeky customization to Lucene AND
  • You are willing to take care of infrastructure elements of your search like scaling, distribution, etc.

何时使用Solr?


  • 上述至少有一项没有意义。或者

  • 你想要的东西可以随时使用(即使不懂Java)或者

  • 你的基础设施要求超过搜索自定义要求。

注意
我不是说Solr很难定制。 Solr非常灵活,并提供了许多可插入的API点,允许您输入代码。

NOTE: I don't mean that Solr is hard to customize. Solr is very flexible and provides a lot of pluggable API points, allowing you to throw-in your code.

有些人,属于'必须使用Lucene '阵营,但仍然更喜欢Solr,因为它很容易使用。但是,他们从不限制自己最大限度地定制Solr。

There are people, falling under 'have to use Lucene' camp, but still prefer Solr to plain Lucene as it's easy to use. However, they never restrain themselves from customizing Solr to the maximum extent.

BTW,我看到Solr(4.x)上的资源比Lucene(4.x)多。

BTW, I see that there are more resources on Solr (4.x) than Lucene (4.x).

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

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