File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
lucene/core/src/test/org/apache/lucene/search Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 4444import org .apache .lucene .tests .util .TestUtil ;
4545import org .junit .Assert ;
4646import org .junit .Before ;
47- import org .junit .Test ;
4847
4948public class TestRescoreTopNQuery extends LuceneTestCase {
5049
@@ -69,7 +68,6 @@ public void setUp() throws Exception {
6968 TestUtil .alwaysKnnVectorsFormat (new Lucene104HnswScalarQuantizedVectorsFormat ()));
7069 }
7170
72- @ Test
7371 public void testInvalidN () {
7472 expectThrows (
7573 IllegalArgumentException .class ,
@@ -79,7 +77,6 @@ public void testInvalidN() {
7977 }
8078
8179 // TODO: incredibly slow
82- @ Test
8380 @ Nightly
8481 public void testRescoreField () throws Exception {
8582 Map <Integer , float []> vectors = new HashMap <>();
@@ -100,9 +97,8 @@ public void testRescoreField() throws Exception {
10097 doc .add (new KnnFloatVectorField (FIELD , vector , VECTOR_SIMILARITY_FUNCTION ));
10198 writer .addDocument (doc );
10299 vectors .put (id , vector );
103-
104- writer .flush ();
105100 }
101+ writer .flush ();
106102 }
107103 }
108104
@@ -197,8 +193,8 @@ public void testLateInteractionQuery() throws Exception {
197193 doc .add (new IntField ("has_li_vector" , 1 , Field .Store .YES ));
198194 }
199195 w .addDocument (doc );
200- w .flush ();
201196 }
197+ w .flush ();
202198 }
203199 // add a segment with no vectors
204200 for (int i = 0 ; i < 100 ; i ++) {
You can’t perform that action at this time.
0 commit comments