How to get data from apache solr – PHP

<?php

$output = file_get_contents(‘http://localhost:8983/solr/select?q=video&wt=php’);

eval(“$resultArray = ” . $output . “;”);

echo “<pre>”;print_r($resultArray);

?>

 

Leave a Reply

Your email address will not be published. Required fields are marked *