Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 43925 invoked from network); 30 Nov 2007 00:53:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 00:53:55 -0000 Received: (qmail 20854 invoked by uid 500); 30 Nov 2007 00:53:37 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 20827 invoked by uid 500); 30 Nov 2007 00:53:37 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 20816 invoked by uid 99); 30 Nov 2007 00:53:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 16:53:37 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [202.167.225.74] (HELO topsp701-int0.prod.tradingscreen.com) (202.167.225.74) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Nov 2007 00:53:39 +0000 Received: from tkdwi001.dev.tradingscreen.com ([172.21.16.56]) by topsp701-int0.prod.tradingscreen.com (SMSSMTP 4.1.5.31) with SMTP id M2007113009531500245 for ; Fri, 30 Nov 2007 09:53:15 +0900 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: CorruptIndexException Date: Fri, 30 Nov 2007 09:53:15 +0900 Message-ID: <847893AE8EE17A48A3725E82C10DE9E5011C2A24@tkdwi001.dev.tradingscreen.com> In-Reply-To: <1196328628.19921.1223855201@webmail.messagingengine.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CorruptIndexException Thread-Index: AcgyapPCupxb8uvZQhOiEMzf+2fyWAAgLqsg From: "Melanie Langlois" To: X-Virus-Checked: Checked by ClamAV on apache.org Thank you, I indeed use newer version of Lucli by mistake. -----Original Message----- From: Michael McCandless [mailto:lucene@mikemccandless.com]=20 Sent: Thursday, November 29, 2007 6:30 PM To: java-user@lucene.apache.org Subject: Re: CorruptIndexException That exception means your index was written with a newer version of Lucene than the version you are using to open the IndexReader. It looks like you used the unreleased (2.3 dev) version of Lucli from the Lucene trunk and then went back to an older Lucene JAR (maybe 2.2?) for accessing it? In general writing an index with a newer version of Lucene and then trying to access it using an older version of Lucene doesn't work (whereas the opposite does). I'm afraid you either have to switch to 2.3-dev for reading your index (but beware it could have sneaky bugs ...), or, rebuild your index with the 2.2 version of Lucene and use the 2.2 Lucli in the future. Mike =20 "Melanie Langlois" wrote: > Hi, >=20 > =20 >=20 > I use Lucli to optimize my index, when my application was stopped. And > after restarting my application, I could not serahc my index anymore, = I > got the following exception : >=20 > =20 >=20 > org.apache.lucene.index.CorruptIndexException: Unknown format version: = -4 >=20 > at > = org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204) >=20 > at > = org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190) >=20 > at > = org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.ja= va:610) >=20 > at = org.apache.lucene.index.IndexReader.open(IndexReader.java:185) >=20 > at = org.apache.lucene.index.IndexReader.open(IndexReader.java:167) >=20 > =20 >=20 > I have two questions: >=20 > -why does it occurs ? Should I use another tool to access the index > outside of my application ? >=20 > -do there is way to recover ? >=20 > =20 >=20 > =20 >=20 > Thanks, >=20 > =20 >=20 > M=E9lanie >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org