Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 67992 invoked from network); 26 Jul 2005 07:04:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 07:04:24 -0000 Received: (qmail 92432 invoked by uid 500); 26 Jul 2005 07:04:20 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 92403 invoked by uid 500); 26 Jul 2005 07:04:20 -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 92390 invoked by uid 99); 26 Jul 2005 07:04:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 00:04:19 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.109.24.30] (HELO smtp-vbr10.xs4all.nl) (194.109.24.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 00:04:12 -0700 Received: from k8l.lan (porta.xs4all.nl [80.127.24.69]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id j6Q74GrT023748 for ; Tue, 26 Jul 2005 09:04:16 +0200 (CEST) (envelope-from paul.elschot@xs4all.nl) From: Paul Elschot To: java-dev@lucene.apache.org Subject: Re: DO NOT REPLY [Bug 34154] - Further improvements to BooleanScorer2 Date: Tue, 26 Jul 2005 09:04:16 +0200 User-Agent: KMail/1.5.4 References: <20050722183121.51E49D2@ajax.apache.org> <200507241723.57273.paul.elschot@xs4all.nl> <49D657F2-0FBA-4430-96F6-C4E29FBACFA2@ehatchersolutions.com> In-Reply-To: <49D657F2-0FBA-4430-96F6-C4E29FBACFA2@ehatchersolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507260904.16216.paul.elschot@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tuesday 26 July 2005 03:01, Erik Hatcher wrote: > > On Jul 24, 2005, at 11:23 AM, Paul Elschot wrote: > > > On Friday 22 July 2005 21:18, Erik Hatcher wrote: > > > >> Paul, > >> > >> I don't have a test case handy (yet), but we're still seeing the > >> exception even after applying the patch from #35823. Do I need to > >> > > > > I'm sorry to hear that. However, the patch from bug 35823 allows > > using of score() more than once on the same document number, > > so I think it is worthwhile to have anyway. > > A test case showing the exception would off course be wellcome. > > Paul - I just updated to your BooleanScorer2 and got the output shown > below. I don't have a test case that I can provide, as the data is > private for the case that causes this error. The search is something > like (I changed the words because that information is also private, > sorry): The words should have no influence on this. > +(spanNear([FULLTEXT:cat, FULLTEXT:dog, FULLTEXT:bird], 1, true) > spanNear([FULLTEXT:horse, FULLTEXT:cow, FULLTEXT:pig], 1, true) > spanNear([FULLTEXT:snake, FULLTEXT:camel], 0, true)) +(FULLTEXT:zebra > FULLTEXT:insect spanNear([FULLTEXT:feline, FULLTEXT:goat], 0, true)) Reformatted to show the structure: +(spanNear([FULLTEXT:cat, FULLTEXT:dog, FULLTEXT:bird], 1, true) spanNear([FULLTEXT:horse, FULLTEXT:cow, FULLTEXT:pig], 1, true) spanNear([FULLTEXT:snake, FULLTEXT:camel], 0, true) ) +(FULLTEXT:zebra FULLTEXT:insect spanNear([FULLTEXT:feline, FULLTEXT:goat], 0, true) ) The top level ConjunctionScorer nicely shows up in the traceback. > > Quite a sophisticated query mixing BooleanQuery and SpanNearQuery > clauses. > > Let me know if there is other information I can provide, or other > variants of BooleanScorer2 I can try. > > Thanks, > Erik > > java.lang.ArrayIndexOutOfBoundsException: More matchers (4) than non > prohibited scorers (3). The DisjunctionSumScorer for one of the two 3 way queries is adding too many matchers. > Added 4 for doc nr 4930. > 0 required scorers. > 3 optional scorers. > 0 prohibited scorers. This is consistent with the query. Could you keep this index around for later tests? > at org.apache.lucene.search.BooleanScorer2 > $Coordinator.addDocMatchers(BooleanScorer2.java:57) > at org.apache.lucene.search.BooleanScorer2$1.score > (BooleanScorer2.java:157) > at org.apache.lucene.search.BooleanScorer2.score > (BooleanScorer2.java:329) > at org.apache.lucene.search.ConjunctionScorer.score > (ConjunctionScorer.java:82) > at org.apache.lucene.search.BooleanScorer2$2.score > (BooleanScorer2.java:182) > at org.apache.lucene.search.BooleanScorer2.score > (BooleanScorer2.java:329) > at org.apache.lucene.search.BooleanScorer2.score > (BooleanScorer2.java:289) > at org.apache.lucene.search.IndexSearcher.search > (IndexSearcher.java:102) > at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:65) > at org.apache.lucene.search.Hits.(Hits.java:44) > at org.apache.lucene.search.Searcher.search(Searcher.java:40) > at org.apache.lucene.search.Searcher.search(Searcher.java:32) > Thanks a lot. I'll check the use of DisjunctionSumScorer in BooleanScorer2 later. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org