Skip to content

Commit 19f273e

Browse files
committed
Merge branch 'dvm_update_bbq' of github.com:tteofili/elasticsearch into dvm_update_bbq
2 parents fea0749 + 5d0ead8 commit 19f273e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/DenseVectorMappingUpdateIT.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,13 @@ public void testDenseVectorMappingUpdateOnOldCluster() throws IOException {
8686
String indexName = "test_index";
8787
if (isOldCluster()) {
8888
Request createIndex = new Request("PUT", "/" + indexName);
89-
XContentBuilder mappings = XContentBuilder.builder(XContentType.JSON.xContent())
90-
.startObject()
91-
.startObject("mappings");
89+
XContentBuilder mappings = XContentBuilder.builder(XContentType.JSON.xContent()).startObject().startObject("mappings");
9290
if (randomBoolean() && getOldClusterTestVersion().after(Version.V_8_12_0.toString())) {
9391
mappings = mappings.startObject("_source");
9492
mappings.field("mode", "synthetic");
9593
mappings.endObject();
9694
}
97-
mappings = mappings
98-
.startObject("properties")
95+
mappings = mappings.startObject("properties")
9996
.startObject("embedding")
10097
.field("type", "dense_vector")
10198
.field("index", "true")

0 commit comments

Comments
 (0)