File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,13 @@ public void testDenseVectorMappingUpdateOnOldCluster() throws IOException {
8888 Request createIndex = new Request ("PUT" , "/" + indexName );
8989 XContentBuilder mappings = XContentBuilder .builder (XContentType .JSON .xContent ())
9090 .startObject ()
91- .startObject ("mappings" )
91+ .startObject ("mappings" );
92+ if (randomBoolean () && getOldClusterTestVersion ().after (Version .V_8_12_0 .toString ())) {
93+ mappings = mappings .startObject ("_source" );
94+ mappings .field ("mode" , "synthetic" );
95+ mappings .endObject ();
96+ }
97+ mappings = mappings
9298 .startObject ("properties" )
9399 .startObject ("embedding" )
94100 .field ("type" , "dense_vector" )
You can’t perform that action at this time.
0 commit comments