Skip to content

Commit 5895490

Browse files
committed
rename mapping for previous index test
1 parent b30377c commit 5895490

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/src/test/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapperTests.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)