Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed Apr 3, 2024
1 parent c0403d8 commit 0b3a091
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.mapper.MapperService;
import org.elasticsearch.index.mapper.MapperServiceTestCase;
import org.elasticsearch.index.mapper.NestedPathFieldMapper;
import org.elasticsearch.index.mapper.ParsedDocument;
import org.elasticsearch.index.mapper.SeqNoFieldMapper;
import org.elasticsearch.index.mapper.SourceFieldMapper;
import org.elasticsearch.index.query.SearchExecutionContext;
import org.elasticsearch.script.Script;
Expand Down Expand Up @@ -261,7 +263,12 @@ public void testMetadataFields() throws IOException {
});

// several other metadata fields throw exceptions via their value fetchers when trying to get them
for (String fieldname : List.of(SourceFieldMapper.NAME, FieldNamesFieldMapper.NAME)) {
for (String fieldname : List.of(
SeqNoFieldMapper.NAME,
SourceFieldMapper.NAME,
FieldNamesFieldMapper.NAME,
NestedPathFieldMapper.name(IndexVersion.current())
)) {
expectThrows(UnsupportedOperationException.class, () -> fetchFields(mapperService, source, fieldname));
}
}
Expand Down

0 comments on commit 0b3a091

Please sign in to comment.