mirror of https://github.com/apache/lucene.git
fix test bug (fails with DFI similarity)
This commit is contained in:
parent
5e935d7106
commit
bf00c961a2
|
@ -265,7 +265,7 @@ public class CommonTermsQueryTest extends LuceneTestCase {
|
||||||
assertEquals("0", r.document(search.scoreDocs[0].doc).get("id"));
|
assertEquals("0", r.document(search.scoreDocs[0].doc).get("id"));
|
||||||
assertEquals("2", r.document(search.scoreDocs[1].doc).get("id"));
|
assertEquals("2", r.document(search.scoreDocs[1].doc).get("id"));
|
||||||
assertEquals("3", r.document(search.scoreDocs[2].doc).get("id"));
|
assertEquals("3", r.document(search.scoreDocs[2].doc).get("id"));
|
||||||
assertTrue(search.scoreDocs[1].score > search.scoreDocs[2].score);
|
assertTrue(search.scoreDocs[1].score >= search.scoreDocs[2].score);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue