Elasticsearch search queries fetch the whole document source by default

Description

It seems that since we moved to docvalues for ID/type fetching, we don't always set the _source attribute in search queries, and as a result Elasticsearch defaults to sending us everything, even though we don't need the source at all in these cases.

We should add a bit after all projections contributed their request, and if the source is not set, set it to false.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure