Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.324 kB
<?php
include_once "Apache/Solr/Service.php";
$solr = new Apache_Solr_Service('localhost', 8080, '/solr/main');
$query = "album review";
$param = array(
'sort' => 'title_sort desc'
);
$results = $solr->search($query, 0, 10, $param);
foreach($results->response->docs as $doc) {
echo $doc->title, PHP_EOL;
}
Jump to Line
Something went wrong with that request. Please try again.