Situations to prefer Apache Lucene over Solr?(在 Solr 上更喜欢 Apache Lucene 的情况?)
问题描述
使用 Solr 1.4 有几个优点(开箱即用的分面搜索、分组、复制、http 管理与卢克……).
There are several advantages to use Solr 1.4 (out-of-the-box facetting search, grouping, replication, http administration vs. luke, ...).
即使我在我的 Java 应用程序中嵌入了搜索功能,我也可以使用 SolrJ 来避免使用 Solr 时的 HTTP 权衡.是否推荐 SolrJ?
Even if I embed a search-functionality in my Java application I could use SolrJ to avoid the HTTP trade-off when using Solr. Is SolrJ recommended at all?
那么,您建议什么时候使用纯 Lucene"?它是否具有更好的性能或需要更少的 RAM?单元测试更好吗?
So, when would you recommend to use "pure-Lucene"? Does it have a better performance or requires less RAM? Is it better unit-testable?
PS:我知道这个问题.
推荐答案
如果你有一个 Web 应用程序,请使用 Solr - 我已经尝试将两者集成,Solr 更容易.否则,如果您不需要 Solr 的功能(想到的最重要的是分面搜索),请使用 Lucene.
If you have a web application, use Solr - I've tried integrating both, and Solr is easier. Otherwise, if you don't need Solr's features (the one that comes to mind as being most important is faceted search), then use Lucene.
这篇关于在 Solr 上更喜欢 Apache Lucene 的情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Solr 上更喜欢 Apache Lucene 的情况?
基础教程推荐
- 将 Windows 证书导入 Java 2022-01-01
- JPA惰性列表上的流 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
