Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed Apr 15, 2024
1 parent 012267a commit 7496fb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static FieldFetcher create(
for (String field : context.getMatchingFieldNames(fieldPattern)) {
MappedFieldType ft = context.getFieldType(field);
// we want to skip metadata fields if we have a wildcard pattern
if (matchingPattern != null && patternIncludePredicate.test(ft)) {
if (matchingPattern == null || patternIncludePredicate.test(ft)) {
resolvedFields.add(new ResolvedField(field, matchingPattern, ft, fieldAndFormat.format));
}
}
Expand Down

0 comments on commit 7496fb8

Please sign in to comment.