File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments