mirror of https://github.com/apache/lucene.git
LUCENE-4803: add test coverage
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1450320 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe0ca7336f
commit
3189f0adea
|
@ -628,6 +628,14 @@ public class TestDrillSideways extends FacetTestCase {
|
|||
}
|
||||
|
||||
verifyEquals(dimValues, s, expected, actual, scores);
|
||||
|
||||
// Make sure drill down doesn't change score:
|
||||
TopDocs ddqHits = s.search(ddq, filter, numDocs);
|
||||
assertEquals(expected.hits.size(), ddqHits.totalHits);
|
||||
for(int i=0;i<expected.hits.size();i++) {
|
||||
// Score should be IDENTICAL:
|
||||
assertEquals(scores.get(expected.hits.get(i).id), ddqHits.scoreDocs[i].score, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
tr.close();
|
||||
|
|
Loading…
Reference in New Issue