lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: BoostingTermQuery.explain() bugs
Date Thu, 30 Aug 2007 22:05:23 GMT

> 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...

chrish@asimov:~/svn/lucene-clean$ ls src/test/org/apache/lucene/search/*Explan*
src/test/org/apache/lucene/search/TestComplexExplanations.java
src/test/org/apache/lucene/search/TestComplexExplanationsOfNonMatches.java
src/test/org/apache/lucene/search/TestExplanations.java
src/test/org/apache/lucene/search/TestSimpleExplanations.java
src/test/org/apache/lucene/search/TestSimpleExplanationsOfNonMatches.java

you could add directly to TestSimpleExplanations and 
TestComplexExplanations assuming you modify the index 
TestExplanations.setUp to include some payload data ... then you get the 
testing of NonMatches for free.



-Hoss

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


Mime
View raw message