Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 451 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 451 Bytes

Overview

A Luke request handler to Solarium.

Usage

use Solarium\Client;
use Solarium\QueryType\Luke\Query as LukeQuery;

$client->registerQueryType(LukeQuery::QUERY_LUKE, 'Solarium\\QueryType\\Luke\\Query');
$luke = $client->createQuery(LukeQuery::QUERY_LUKE);
$data = $client->execute($luke);

print 'Top terms: ';
var_dump($data->getTopTerms());
print PHP_EOL;