Return-Path: X-Original-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2470913A for ; Thu, 27 Oct 2011 13:40:49 +0000 (UTC) Received: (qmail 78908 invoked by uid 500); 27 Oct 2011 13:40:49 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 78887 invoked by uid 500); 27 Oct 2011 13:40:49 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 78879 invoked by uid 99); 27 Oct 2011 13:40:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 13:40:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 13:40:44 +0000 Received: by wwg38 with SMTP id 38so2711699wwg.5 for ; Thu, 27 Oct 2011 06:40:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.230.98 with SMTP id i76mr13961987weq.19.1319722822604; Thu, 27 Oct 2011 06:40:22 -0700 (PDT) Received: by 10.216.74.18 with HTTP; Thu, 27 Oct 2011 06:40:22 -0700 (PDT) In-Reply-To: References: <003601cc9479$d46c1af0$7d4450d0$@de> Date: Thu, 27 Oct 2011 09:40:22 -0400 Message-ID: Subject: Re: SynonymAnalyzer(s) in PyLucene34 From: Michael McCandless To: pylucene-dev@lucene.apache.org, Andi Vajda Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Oct 27, 2011 at 9:09 AM, Andi Vajda wrote: > So, I downloaded the new version of the samples, hoping to find a new > version of the wordnet index. But first, following instructions in README= , > running 'ant test' in the lia2e directory fails with: > =A0 =A0Testcase: testWriteLock(lia.indexing.LockTest): =A0 =A0 Caused an = ERROR > =A0 =A0[junit] Unknown format version: -11 > during the CreateTestIndex step. Mike, what could that be ? (running Luce= ne > 3.4.0) Hmmm, odd. I couldn't reproduce this. First I tried w/ the ZIP as downloaded. Then, I replaced the lib/lucene-core-3.0.2.jar with the 3.4.0 jar. (Separately, I removed lucene-*-dev.jar: not sure why those are in the zip file!). "ant test" ran fine both times. Did the LockTest fail or was it really during CreateTestIndex? It sounds like somehow something is opening a newer Lucene index than 3.x (format -11 is likely referring to the segments file, which was added for 3.1; so likely somehow it's using Lucene 3.0.x and trying to access a 3.1 index). LockTest uses an index in /tmp/index, so maybe that's where the too-new index is being hit? Mike McCandless http://blog.mikemccandless.com