lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: DO NOT REPLY [Bug 34154] - Further improvements to BooleanScorer2
Date Tue, 26 Jul 2005 01:01:04 GMT

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):

+(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))

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).
Added 4 for doc nr 4930.
0 required scorers.
3 optional scorers.
0 prohibited scorers.
     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.<init>(Hits.java:44)
     at org.apache.lucene.search.Searcher.search(Searcher.java:40)
     at org.apache.lucene.search.Searcher.search(Searcher.java:32)



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message