Re: BoostingTermQuery.explain() bugs

2007-08-30 Thread Chris Hostetter
Yes. JUnit would also be good, if you have it. if you want to write some there is a lot of good helper code already out there for making sure the hits and scores produced by a query match the explanations produced by that same query... [EMAIL PROTECTED]:~/svn/lucene-clean$ ls src/test/or

Re: BoostingTermQuery.explain() bugs

2007-08-30 Thread Grant Ingersoll
On Aug 30, 2007, at 3:40 PM, Peter Keegan wrote: There are a couple of minor bugs in BoostingTermQuery.explain(). 1. The computation of average payload score produces NaN if no payloads were found. It should probably be: float avgPayloadScore = super.score() * (payloadsSeen > 0 ? (payload