query.explain() with the Elasticsearch backend fails when using projections or multi-tenancy

Description

It looks like we don't take care of adapting the payload to what explain() accepts (i.e. only the "query" part), and Elasticsearch returns a parsing error.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure