Skip to content

Commit

Permalink
updating for older java
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Dec 23, 2024
1 parent f453e6d commit fcd5c85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ private Collection<String> validateUpdatedMappings(
List<LuceneDocument> luceneDocuments = result.parsedDoc().docs();
assert luceneDocuments == null || luceneDocuments.size() == 1 : "Expected a single lucene document from index attempt";
if (luceneDocuments != null && luceneDocuments.size() == 1) {
ignoredFields = luceneDocuments.getFirst()
ignoredFields = luceneDocuments.get(0)
.getFields()
.stream()
.filter(field -> field.name().equals(IgnoredFieldMapper.NAME) && field instanceof StringField)
Expand Down

0 comments on commit fcd5c85

Please sign in to comment.