pnz / solarium-clustering-query
Clustering handler的Solarium查询支持
dev-master / 0.1.x-dev
2019-02-26 13:39 UTC
Requires
- php: ^7.1
- ext-json: *
- solarium/solarium: ^4.0
This package is auto-updated.
Last update: 2024-08-27 02:06:00 UTC
README
待定
安装
composer require pnz/solarium-clustering-query
用法
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); }