Solr 与 Hibernate 搜索 - 选择哪个以及何时选择? [英] Solr vs Hibernate Search - Which to choose and When?

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

问题描述

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

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.

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

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 主要用于全文搜索:如果你想在一大组文档中查找单词(例如单数和复数)每个文档从一段到几页不等.如果您不将 Solr 用于文本搜索而仅用于 int 和 varchar 搜索,则 Solr 可能不会比常规数据库更好.

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.

此链接可能对您有用:

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

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

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