Solr与Hibernate Search - 选择何时? [英] Solr vs Hibernate Search - Which to choose and When?

查看:102
本文介绍了Solr与Hibernate Search - 选择何时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建电子商务应用程序。我们使用Hibernate和Spring Framework的JAVA堆栈。与所有电子商务应用程序一样,我们需要在我们的网站中建立搜索功能。



因此,我们遇到了 Hibernate搜索 Apache Solr 。有人可以列出两者的优点和缺点,以便我们可以为企业级搜索选择理想的解决方案吗?

解决方案

Solr主要用于全文搜索:如果您想在一组大文档中找到单词(例如单数和复数),其中每个文档的大小从一个段落到几个页面。如果您不使用它进行文本搜索,而只用于int和varchar搜索,Solr可能不会比常规数据库更好。



此链接可能对您有用:

http://engineering.twitter.com/2011/04/twitter-search-is-now-3x-faster_1656.html


We are building an ecommerce application. We are using JAVA stack with Hibernate and Spring Framework. As with all ecommerce application, we need to build search capability into ours.

So, we came across Hibernate Search and Apache Solr . Can someone list out the pros and cons of both of them so that we can select the ideal solution for Enterprise Search?

解决方案

Apache Solr is mainly used for full text search: if you want to find words (singular and plurals for example) in a big set of documents where the size of each doc is from one paragraph to a few pages. Solr may not be better than a regular database if you don't use it for text search but only for int and varchar search.

This link might be useful to you:

http://engineering.twitter.com/2011/04/twitter-search-is-now-3x-faster_1656.html

这篇关于Solr与Hibernate Search - 选择何时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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