pnz/solarium-clustering-query

Solarium Query support for Clustering handler

dev-master / 0.1.x-dev 2019-02-26 13:39 UTC

This package is auto-updated.

Last update: 2021-04-26 18:51:36 UTC


README

TBD

Install

composer require pnz/solarium-clustering-query

Usage:

    use Pnz\SolariumClustering\QueryType\Query;
    use Pnz\SolariumClustering\QueryType\Result\Result;

    $clusteringQuery = new Query();
    $clusteringQuery->setRows(200);
    $clusteringQuery->setClusteringEngine('lingo');

    /** @var Result $res */
    $result = $solrClient->execute($clusteringQuery);

    foreach ($result->getClusters() as $cluster) {
        var_dump($cluster);
    }