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 50215c5 commit ee00b06
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.elasticsearch.index.mapper.IgnoredFieldMapper;
import org.elasticsearch.index.mapper.LegacyTypeFieldMapper;
import org.elasticsearch.index.mapper.RoutingFieldMapper;
import org.elasticsearch.index.mapper.SourceFieldMapper;
import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.fetch.FetchContext;
import org.elasticsearch.search.fetch.FetchSubPhase;
Expand Down Expand Up @@ -63,6 +64,7 @@ public FetchSubPhaseProcessor getProcessor(FetchContext fetchContext) {
} else {
fields = new ArrayList<>(METADATA_FIELDS);
for (String fieldName : storedFieldsContext.fieldNames()) {
if (fieldName.equals(SourceFieldMapper.NAME) == false)
fields.add(new FieldAndFormat(fieldName, null));
}
}
Expand Down

0 comments on commit ee00b06

Please sign in to comment.