mvenghaus/m2-module-elasticsuite-debug

Very poorly programmed debug output of Elasticsearch requests in frontend ;)

1.0.1 2024-03-25 05:35 UTC

This package is auto-updated.

Last update: 2024-10-25 06:53:08 UTC


README

Very poorly programmed debug output of Elasticsearch requests in frontend .. but it works ;)

It shows the final Elasticsearch request in a modal with a copy button.

Installation

composer require --dev mvenghaus/m2-module-elasticsuite-debug

Usage

/** @var \Smile\ElasticsuiteCore\Search\RequestInterface $request */
\Mvenghaus\ElasticsuiteDebug\ElasticsuiteDebug::debugRequest($request);
/** @var \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection $productCollection */
\Mvenghaus\ElasticsuiteDebug\ElasticsuiteDebug::debugCollection($productCollection);