Skip to content

Commit

Permalink
Fix test to preserve index order.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed Nov 23, 2023
1 parent 5aa401e commit 14cee15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ public void testSortedIndexBytes() throws Exception {

public void testIndexMultipleKnnVectorFields() throws Exception {
try (Directory dir = newDirectory();
IndexWriter iw = new IndexWriter(dir, newIndexWriterConfig())) {
IndexWriter iw =
new IndexWriter(dir, newIndexWriterConfig().setMergePolicy(newLogMergePolicy()))) {
Document doc = new Document();
float[] v = new float[] {1};
doc.add(new KnnFloatVectorField("field1", v, VectorSimilarityFunction.EUCLIDEAN));
Expand Down

0 comments on commit 14cee15

Please sign in to comment.