使用solr比使用Lucene .Net有什么优点?

时间:2021-01-09 03:08:49

We are trying to incorporate full-text search into our product. When searching for comparisons of lucene and solr i found that most people mention the obvious difference that lucene (and lucene .Net) is a library, while solr is an application. Some people also mentioned solr features such as hit highlighting, but the lucene .Net contrib library seems to support them as well. The only feature i have seen that is supported in solr and not in lucene is document field typing.

我们正试图将全文搜索整合到我们的产品中。在搜索lucene和solr的比较时,我发现大多数人都提到了lucene(和lucene。net)是一个库,而solr是一个应用程序。有些人也提到solr特性,比如hit高亮显示,但是lucene . net后悔库似乎也支持它们。我所看到的唯一一个在solr中支持的特性,而不是在lucene中支持的特性是文档字段类型。

Using Lucene .Net will make our deployment process easier (our product runs on IIS) so we are inclined to use Lucene .NET over solr. However, we would like to know what exactly we would be missing if we do not use solr. I would appreciate some details of each feature / advantage as opposed to a simple list.

使用Lucene . net将使我们的部署过程更容易(我们的产品在IIS上运行),因此我们倾向于使用Lucene . net而不是solr。但是,我们想知道如果不使用solr,我们将会丢失什么。与简单的列表相比,我想了解每个特性/优点的一些细节。

1 个解决方案

#1


4  

Have a look at this link : http://www.solrtutorial.com/overview/solr-for-managers.html

看看这个链接:http://www.solrtutorial.com/overview/solr for managers.html

As you said, SOLR is an application, meaning you won't have to implement this (for example) :

正如您所说,SOLR是一个应用程序,这意味着您不必实现它(例如):

  • search result highlighting
  • 搜索结果显示
  • database integration
  • 数据库集成
  • searching of binary documents such as Word and PDF
  • 搜索二进制文档,如Word和PDF

By implementing I mean calling Lucene.API to use those features.

实现我的意思是叫Lucene。API来使用这些特性。

Basically :

基本上:

  • Using SOLR means calling index and search commands to a REST service.
  • 使用SOLR意味着调用索引和搜索命令到REST服务。
  • Using Lucene.NET means writing code to manage index creation, data indexing (Lucene does not know how to index Word files), and so on.
  • 使用Lucene。NET意味着编写代码来管理索引创建、数据索引(Lucene不知道如何索引Word文件)等等。

#1


4  

Have a look at this link : http://www.solrtutorial.com/overview/solr-for-managers.html

看看这个链接:http://www.solrtutorial.com/overview/solr for managers.html

As you said, SOLR is an application, meaning you won't have to implement this (for example) :

正如您所说,SOLR是一个应用程序,这意味着您不必实现它(例如):

  • search result highlighting
  • 搜索结果显示
  • database integration
  • 数据库集成
  • searching of binary documents such as Word and PDF
  • 搜索二进制文档,如Word和PDF

By implementing I mean calling Lucene.API to use those features.

实现我的意思是叫Lucene。API来使用这些特性。

Basically :

基本上:

  • Using SOLR means calling index and search commands to a REST service.
  • 使用SOLR意味着调用索引和搜索命令到REST服务。
  • Using Lucene.NET means writing code to manage index creation, data indexing (Lucene does not know how to index Word files), and so on.
  • 使用Lucene。NET意味着编写代码来管理索引创建、数据索引(Lucene不知道如何索引Word文件)等等。