Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 785 Bytes

topics-debug.md

File metadata and controls

26 lines (22 loc) · 785 Bytes

Using the Elasticsearch DebugPanel

The yii2 Elasticsearch extension 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',
                ],
            ],
        ],
    ],
    // ...

Elasticsearch DebugPanel