File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
server/src/test/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -85,16 +85,13 @@ protected void minimalMapping(XContentBuilder b) throws IOException {
8585 b .field ("type" , "sparse_vector" );
8686 }
8787
88- protected void minimalFieldMappingPreviousIndexVersion (XContentBuilder b ) throws IOException {
88+ protected void minimalFieldMappingPreviousIndexDefaultsIncluded (XContentBuilder b ) throws IOException {
8989 b .field ("type" , "sparse_vector" );
9090 b .field ("store" , false );
9191
9292 b .startObject ("meta" );
9393 b .endObject ();
9494
95- // note that internally, this will have a `index_options: null` field,
96- // but when serialized back to the client, this field will be pruned
97- // the YAML Rest tests checks for this
9895 b .field ("index_options" , (Object ) null );
9996 }
10097
@@ -276,7 +273,7 @@ public void testDefaultsWithAndWithoutIncludeDefaultsOlderIndexVersion() throws
276273
277274 XContentBuilder withDefaults = JsonXContent .contentBuilder ().startObject ();
278275 withDefaults .startObject ("field" );
279- minimalFieldMappingPreviousIndexVersion (withDefaults );
276+ minimalFieldMappingPreviousIndexDefaultsIncluded (withDefaults );
280277 withDefaults .endObject ();
281278 withDefaults .endObject ();
282279
You can’t perform that action at this time.
0 commit comments