Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C07512538 for ; Sat, 7 May 2011 12:39:45 +0000 (UTC) Received: (qmail 41587 invoked by uid 500); 7 May 2011 12:39:44 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 41536 invoked by uid 500); 7 May 2011 12:39:44 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 41529 invoked by uid 99); 7 May 2011 12:39:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2011 12:39:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [85.25.71.29] (HELO mail.troja.net) (85.25.71.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2011 12:39:36 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id EE02445FCF4 for ; Sat, 7 May 2011 14:39:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.troja.net Received: from mail.troja.net ([127.0.0.1]) by localhost (megaira.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WgkdQrXHVB7W for ; Sat, 7 May 2011 14:39:11 +0200 (CEST) Received: from VEGA (port-92-196-39-101.dynamic.qsc.de [92.196.39.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id C5BF645FD1B for ; Sat, 7 May 2011 14:39:10 +0200 (CEST) From: "Uwe Schindler" To: References: <20110507095248.4288223888FE@eris.apache.org> In-Reply-To: Subject: RE: svn commit: r1100495 - in /lucene/dev/trunk: ./ lucene/ lucene/backwards/ lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java solr/ Date: Sat, 7 May 2011 14:39:12 +0200 Message-ID: <001901cc0cb3$c50b4070$4f21c150$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIg6UhNw3CSu+6hfjQWGr8T26yEywIeyLHTk8aeVyA= Content-Language: de X-Virus-Checked: Checked by ClamAV on apache.org I agree. We should maybe factor out the createIndex method at all to a = separate class that also automatically ZIPs the index after creating it. = createIndex method is not really a test, it=E2=80=99s a utility to = produce the indexes. I just committed this to be able to process with merging here. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Robert Muir [mailto:rcmuir@gmail.com] > Sent: Saturday, May 07, 2011 2:35 PM > To: dev@lucene.apache.org > Subject: Re: svn commit: r1100495 - in /lucene/dev/trunk: ./ lucene/ > lucene/backwards/ > = lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java > solr/ >=20 > Hi Uwe, >=20 > I think we should open an issue to clean some of this up (I know i am = at fault > for some of it) >=20 > Recently, i worked with this test some and also found these problems: > * when creating the backwards test index, we should not lowercase. the = test > expects to be able to do term-queries on upper-case terms. > * when creating the backwards test index, I don't think we should use = any > random parameters... it should be 'fixed'. So for trunk this means = dont use > mockanalyzer but mocktokenizer only. >=20 > On Sat, May 7, 2011 at 5:52 AM, wrote: > > Author: uschindler > > Date: Sat May 7 09:52:47 2011 > > New Revision: 1100495 > > > > URL: http://svn.apache.org/viewvc?rev=3D1100495&view=3Drev > > Log: > > It was no longer possible to create the backwards test indexes, = because > they were automatically deleted directly after test and also their = name was > unreadable. > > The method to create backwards indexes is never called for normal = test > > runs, only when you explicitly enable the commented-out code > > > > Modified: > > lucene/dev/trunk/ (props changed) > > lucene/dev/trunk/lucene/ (props changed) > > lucene/dev/trunk/lucene/backwards/ (props changed) > > > > > lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestBackwards > > Compatibility.java > > lucene/dev/trunk/solr/ (props changed) > > > > Modified: > > > lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestBackwards > > Compatibility.java > > URL: > > = http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apac > > > = he/lucene/index/TestBackwardsCompatibility.java?rev=3D1100495&r1=3D110049= > 4 > > &r2=3D1100495&view=3Ddiff > > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > =3D=3D=3D=3D=3D=3D=3D=3D > > --- > > > lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestBackwards > > Compatibility.java (original) > > +++ > lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestBackw > > +++ ardsCompatibility.java Sat May 7 09:52:47 2011 > > @@ -446,8 +446,8 @@ public class TestBackwardsCompatibility > > } > > > > public File createIndex(Random random, String dirName, boolean > > doCFS) throws IOException { > > - > > - File indexDir =3D _TestUtil.getTempDir(dirName); > > + // we use a real directory name that is not cleaned up, because = this > method is only used to create backwards indexes: > > + File indexDir =3D new File(LuceneTestCase.TEMP_DIR, dirName); > > _TestUtil.rmDir(indexDir); > > Directory dir =3D newFSDirectory(indexDir); > > > > > > > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For = additional > commands, e-mail: dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org