gpt4 book ai didi

java - 升级 Jackrabbit 1.3 到 Jackrabbit 2.1.1

转载 作者:行者123 更新时间:2023-11-30 09:52:04 27 4
gpt4 key购买 nike

在我的项目中,我需要将 Jackrabbit 1.3 更改为 Jackrabbit 2.1.1。我的工作是为查询工作。如果索引格式和查询格式有变化,请建议我。 Jackrabbit 2.1.1 使用 Lucene 2.4,Jackrabbit 1.3 使用 Lucene 2.2。

最佳答案

让我们将升级分为以下几个部分:

  • 将 1.3 升级到 1.5(参见 Class IndexMigration):

    IndexMigration implements a utility that migrates a Jackrabbit 1.4.x index to version 1.5. Until version 1.4.x, indexes used the character '' to separate the name of a property from the value. As of Lucene 2.3 this does not work anymore. See LUCENE-1221. Jackrabbit >= 1.5 uses the character '[' as a separator. Whenever an index is opened from disk, a quick check is run to find out whether a migration is required. See also JCR-1363 for more details.

  • 将 1.5 升级到 2.0.0(参见 RELEASE-NOTES.txt):

    Backwards compatiblity

    Jackrabbit 2.0 is designed to be compatible with existing Jackrabbit 1.x clients and repositories. The main exceptions to this goal are:

    • Removal of deprecated classes and features. Jackrabbit 2.0 is not backwards compatible with client code that used classes or features that had been deprecated during the 1.x release cycle. Most notably the temporary org.apache.jackrabbit.api.jsr283 interfaces have been removed in favor of the official JCR 2.0 API in javax.jcr.
    • Repositories that have used the new JSR 283 security features included as a development preview in Jackrabbit 1.5 and 1.6 may face problems when upgrading to Jackrabbit 2.0. See especially JCR-1944 and JCR-2313 for more details.
    • The JCR-RMI layer no longer implements the Jackrabbit API extensions. Code that uses JCR-RMI with distributed transactions or for administration operations like creating workspaces or registering node types needs to be updated accordingly.
    • The JCR-RMI layer in Jackrabbit 2.0 only supports JCR 2.0 repositories. To access a JCR 1.0 repository implementation like Jackrabbit 1.x over RMI, you need to use the 1.x versions of JCR-RMI.
  • 升级 2.0.0 到 2.1.1(2.x 分支定位于拥有稳定的 API):

    This is Apache Jackrabbit 2.0.0, a fully compliant and production-ready implementation of the Content Repository for Java Technology API, version 2.0

另请参阅 Jackrabbit 的兼容性表和 Lucene API。

关于java - 升级 Jackrabbit 1.3 到 Jackrabbit 2.1.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4377169/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com