From java-dev-return-10012-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Mon May 02 21:21:31 2005 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 22703 invoked from network); 2 May 2005 21:21:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2005 21:21:31 -0000 Received: (qmail 47307 invoked by uid 500); 2 May 2005 21:22:58 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 47273 invoked by uid 500); 2 May 2005 21:22:58 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 47254 invoked by uid 99); 2 May 2005 21:22:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mta1.lbl.gov (HELO mta1.lbl.gov) (128.3.41.24) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 14:22:57 -0700 Received: from mta1.lbl.gov (localhost [127.0.0.1]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id j42LLLn3013128 for ; Mon, 2 May 2005 14:21:21 -0700 (PDT) Received: from [131.243.2.247] (hoschek.dhcp.lbl.gov [131.243.2.247]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id j42LLKP8013125 for ; Mon, 2 May 2005 14:21:21 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: References: <950FF7DE40C2B64CAF80B564732927E1039E71E2@exchange.be.bvd> <2c72ba4c359bdd67e79dcfe24230ad06@ehatchersolutions.com> <852435ac6ea8e8d7f3b7cba56b357c31@lbl.gov> <070bbcd7f394b261d967e5ff858c04ac@lbl.gov> <9cbef995dd3e047496de76bdc4616f4b@lbl.gov> <426FBC2D.7080700@apache.org> <385d2d810db4bbf02efb4b0a774cb0bf@ehatchersolutions.com> <118f3255b19702281c765c9768e15367@lbl.gov> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1293c5fd7fb3fad5ab84782781f1f6f3@lbl.gov> Content-Transfer-Encoding: 7bit From: Wolfgang Hoschek Subject: Re: [Performance] Streaming main memory indexing of single strings Date: Mon, 2 May 2005 14:21:18 -0700 To: java-dev@lucene.apache.org X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Finally found and fixed the bug! The fix is simply to replace MemoryIndex.MemoryIndexReader skipTo() with the following: public boolean skipTo(int target) { if (DEBUG) System.err.println(".skipTo: " + target); return next(); } Apparently lucene-1.4.3 didn't use skipTo() in a way that triggered the bug, while SVN does. I now ran the tests over a much larger set of documents and all tests pass. Give it a shot :-) Wolfgang. On May 2, 2005, at 9:05 AM, Wolfgang Hoschek wrote: > I'm looking at it right now. The tests pass fine when you put > lucene-1.4.3.jar instead of the current lucene onto the classpath > which is what I've been doing so far. Something seems to have changed > in the scoring calculation. No idea what that might be. I'll see if I > can find out. > > Wolfgang. > >> The test case is failing (type "ant test" at the contrib/memory >> working directory) with this: >> >> [junit] Testcase: >> testMany(org.apache.lucene.index.memory.MemoryIndexTest): Caused an >> ERROR >> [junit] BUG DETECTED:69 at query=term AND NOT phrase term, >> file=src/java/org/apache/lucene/index/memory/MemoryIndex.java, >> anal=org.apache.lucene.analysis.SimpleAnalyzer@127b52 >> [junit] java.lang.IllegalStateException: BUG DETECTED:69 at >> query=term AND NOT phrase term, >> file=src/java/org/apache/lucene/index/memory/MemoryIndex.java, >> anal=org.apache.lucene.analysis.SimpleAnalyzer@127b52 >> [junit] at >> org.apache.lucene.index.memory.MemoryIndexTest.run(MemoryIndexTest.jav >> a:305) >> [junit] at >> org.apache.lucene.index.memory.MemoryIndexTest.testMany(MemoryIndexTes >> t.java:228) >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org