Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benwtrent committed Jun 25, 2024
1 parent ecc2e35 commit e3b07dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.KnnVectorsFormat;
import org.apache.lucene.codecs.lucene99.Lucene99Codec;
import org.apache.lucene.index.VectorSimilarityFunction;
import org.junit.Before;

public class ES815BitFlatVectorFormatTests extends BaseKnnBitVectorsFormatTestCase {
Expand All @@ -27,7 +28,7 @@ public KnnVectorsFormat getKnnVectorsFormatForField(String field) {

@Before
public void init() {
similarityFunction = randomSimilarity();
similarityFunction = VectorSimilarityFunction.EUCLIDEAN;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.KnnVectorsFormat;
import org.apache.lucene.codecs.lucene99.Lucene99Codec;
import org.apache.lucene.index.VectorSimilarityFunction;
import org.junit.Before;

public class ES815HnswBitVectorsFormatTests extends BaseKnnBitVectorsFormatTestCase {
Expand All @@ -27,6 +28,6 @@ public KnnVectorsFormat getKnnVectorsFormatForField(String field) {

@Before
public void init() {
similarityFunction = randomSimilarity();
similarityFunction = VectorSimilarityFunction.EUCLIDEAN;
}
}

0 comments on commit e3b07dd

Please sign in to comment.