Skip to content

Commit ab38369

Browse files
committed
Fix flakey semantic_text index_options test
1 parent 89176d1 commit ab38369

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,11 @@ public void testDefaultIndexOptions() throws IOException {
14371437
b.field("similarity", "cosine");
14381438
b.field("element_type", "float");
14391439
b.endObject();
1440-
}), useLegacyFormat, IndexVersions.SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X, IndexVersions.UPGRADE_TO_LUCENE_10_0_0);
1440+
}),
1441+
useLegacyFormat,
1442+
IndexVersions.SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X,
1443+
IndexVersionUtils.getPreviousVersion(IndexVersions.UPGRADE_TO_LUCENE_10_0_0)
1444+
);
14411445
assertSemanticTextField(mapperService, "field", true, null, defaultBbqHnswSemanticTextIndexOptions());
14421446

14431447
// Previous 8.x index versions do not set BBQ index options

0 commit comments

Comments
 (0)