The yii2 elasticsearch extensions provides a DebugPanel
that can be integrated with the yii debug module
and shows the executed elasticsearch queries. It also allows to run these queries
and view the results.
Add the following to you application config to enable it (if you already have the debug module enabled, it is sufficient to just add the panels configuration):
// ...
'bootstrap' => ['debug'],
'modules' => [
'debug' => [
'class' => 'yii\\debug\\Module',
'panels' => [
'elasticsearch' => [
'class' => 'yii\\elasticsearch\\DebugPanel',
],
],
],
],
// ...