如何将 Magnolia cms 与 hibernate 搜索集成?

发布于 2024-12-11 22:43:04 字数 257 浏览 0 评论 0原文

有人设法获得包含这两个框架的工作应用程序吗?

我面临的问题是依赖关系是这样的:

magnolia 4.4.5 ->阿帕奇杰克兔 1.6.4 ->阿帕奇卢森2.4.1 hibernate搜索3.4.1.Final -> apache lucene 3.1.0

所以lucene版本不一致。 我需要一个带有注释的休眠搜索版本。

我真的尝试过将这两者整合起来,但没有成功。我希望其他人能够做到。

谢谢 :)

Did somebody manage to get a working application which included these 2 frameworks?

The problem I'm facing is that the dependencies are like this:

magnolia 4.4.5 -> apache jackrabbit 1.6.4 -> apache lucene 2.4.1
hibernate search 3.4.1.Final -> apache lucene 3.1.0

So there's an inconsistency for the lucene version.
And I need a version of hibernate search that's with annotations.

I've really tried to integrate these 2 but with no luck. I hope somebody else managed to.

Thanks :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

胡大本事 2024-12-18 22:43:04

我们已经成功地使用了这一点很长时间了。 Jackrabbit更新Lucene这么慢真是太糟糕了。这让事情变得困难。我认为您应该考虑在单独的 JVM 中使用 Solr 以摆脱这种依赖性。

话虽如此,这就是解决问题的方法。定义什么是可能的是 Jackrabbit。

Jackrabbit 1.6.x 并且您必须使用 Lucene 2.4.x。我们成功地做到了很长一段时间,但后来被迫使用旧的休眠搜索。如果您愿意,我也可以给您该配置。

但最近jackrabbit发布2.3.0时它依赖于Lucene 3.0.3。它在 3.1.0 上中断,因此您必须使用 Lucene 3.0.3。

这是我们的简化配置:


org.apache.jackrabbit:jackrabbit-core 2.3.0
- 排除 org.apache.lucene:lucene-core

org.hibernate:hibernate-core:3.6.7.Final

org.hibernate:hibernate-commons-annotations:3.2.0.Final
- 排除 org.hibernate:hibernate

org.hibernate:hibernate-search:3.3.0.Final 或 3.4.0.CR1
- 排除 org.hibernate:ejb3-persistence
- 排除 org.apache.lucene:lucene-core

(3.4.0.CR1 是最后一个依赖于 Lucene 3.0.3 的休眠搜索,但如果您不想要 beta 版本,请使用 3.3.0 或 3.3.1)

org .apache.lucene:lucene-core:3.0.3

Magnolia 4.4.5

正常的 Hibernate Annotations 项目现在包含在 org.hibernate:hibernate-core:3.6.7.Final 中,因此无需依赖它。

We have succesfully used this a long time. It really sucks that Jackrabbit is so slow to update Lucene. That makes it hard. I think you should consider using Solr in a separate JVM just to get rid of this dependency.

Having said that, this is how you can solve it. What defines what is possible is Jackrabbit.

Jackrabbit 1.6.x and you MUST use Lucene 2.4.x. We did that successfully a long time but was then forced to use an old hibernate search. If you want to I can give you that config as well.

But recently when jackrabbit released 2.3.0 it depends on Lucene 3.0.3. It breaks on 3.1.0, so you must use Lucene 3.0.3.

This is our config simplified:


org.apache.jackrabbit:jackrabbit-core 2.3.0
- exclude org.apache.lucene:lucene-core

org.hibernate:hibernate-core:3.6.7.Final

org.hibernate:hibernate-commons-annotations:3.2.0.Final
- exclude org.hibernate:hibernate

org.hibernate:hibernate-search:3.3.0.Final or 3.4.0.CR1
- exclude org.hibernate:ejb3-persistence
- exclude org.apache.lucene:lucene-core

(3.4.0.CR1 is the last hibernate search that depends on Lucene 3.0.3, but if you don't want beta-versions use 3.3.0 or 3.3.1)

org.apache.lucene:lucene-core:3.0.3

Magnolia 4.4.5

The normal Hibernate Annotations project is now included in org.hibernate:hibernate-core:3.6.7.Final so no need to depend on that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文