Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 80001 invoked from network); 27 Mar 2007 09:27:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2007 09:27:16 -0000 Received: (qmail 41429 invoked by uid 500); 27 Mar 2007 09:27:22 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 41404 invoked by uid 500); 27 Mar 2007 09:27:22 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 41395 invoked by uid 99); 27 Mar 2007 09:27:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 02:27:22 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 02:27:14 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5E70B714041 for ; Tue, 27 Mar 2007 02:26:32 -0700 (PDT) Message-ID: <668455.1174987592384.JavaMail.jira@brutus> Date: Tue, 27 Mar 2007 02:26:32 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-788) Upgrade to Lucene 2.1 In-Reply-To: <16107341.1173777489220.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484372 ] Marcel Reutegger commented on JCR-788: -------------------------------------- Lucene 2.1 can read index files created with previous releases, but will write new files in the 2.1 version. Once you upgrade to 2.1 you cannot go back anymore, unless you re-index the repository. Because lucene 2.1 is not yet available in a maven 2 repository and the change is only minor I would rather keep the 2.0 compile dependency in the pom. I suggest the following change: Index: PersistentIndex.java =================================================================== --- PersistentIndex.java (revision 520911) +++ PersistentIndex.java (working copy) @@ -42,7 +42,7 @@ private static final String WRITE_LOCK = IndexWriter.WRITE_LOCK_NAME; /** Name of the commit lock file */ - private static final String COMMIT_LOCK = IndexWriter.COMMIT_LOCK_NAME; + private static final String COMMIT_LOCK = "commit.lock"; /** The name of this persistent index */ private final String name; This allows the sources to compile with either 2.0 or 2.1. I think it is actually possible to upgrade lucene without this change because the compiler puts the commit.lock literal into the PersistentIndex class file and therefore removes the dependency to the IndexWriter.COMMIT_LOCK_NAME field. > Upgrade to Lucene 2.1 > --------------------- > > Key: JCR-788 > URL: https://issues.apache.org/jira/browse/JCR-788 > Project: Jackrabbit > Issue Type: Improvement > Components: query > Reporter: Marcel Reutegger > Priority: Minor > Attachments: patch.txt > > > Lucene 2.1 contains a number of useful enhancements, which could be benefical to jackrabbit: > - less locking on index updates -> less IO calls > - introduces FieldSelector -> allows jackrabbit to only load required fields -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.