Skip to content

Commit 38f784a

Browse files
committed
synthetic recovery source is enabled by default now (in snapshot builds)
1 parent 64c6fe8 commit 38f784a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/test/java/org/elasticsearch/index/mapper/SyntheticSourceNativeArrayIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void testSynthesizeArrayIgnoreAbove() throws Exception {
7777
new Object[] { "123", "1234", "12345" },
7878
new Object[] { null, null, null, "blabla" },
7979
new Object[] { "1", "2", "3", "blabla" } };
80-
verifySyntheticArray(arrayValues, mapping, 4, "_id", "_recovery_source", "field._original");
80+
verifySyntheticArray(arrayValues, mapping, 4, "_id", "field._original");
8181
}
8282

8383
public void testSynthesizeObjectArray() throws Exception {
@@ -100,7 +100,7 @@ private void verifySyntheticArray(Object[][] arrays) throws IOException {
100100
.endObject()
101101
.endObject()
102102
.endObject();
103-
verifySyntheticArray(arrays, mapping, null, "_id", "_recovery_source");
103+
verifySyntheticArray(arrays, mapping, null, "_id");
104104
}
105105

106106
private void verifySyntheticArray(Object[][] arrays, XContentBuilder mapping, Integer ignoreAbove, String... expectedStoredFields)
@@ -221,7 +221,7 @@ private void verifySyntheticObjectArray(List<List<Object[]>> documents) throws I
221221
var document = reader.storedFields().document(i);
222222
// Verify that there is ignored source because of leaf array being wrapped by object array:
223223
List<String> storedFieldNames = document.getFields().stream().map(IndexableField::name).toList();
224-
assertThat(storedFieldNames, contains("_id", "_recovery_source", "_ignored_source"));
224+
assertThat(storedFieldNames, contains("_id", "_ignored_source"));
225225

226226
// Verify that there is no offset field:
227227
LeafReader leafReader = reader.leaves().get(0).reader();

0 commit comments

Comments
 (0)