diff --git a/src/consulta_solr.php b/src/consulta_solr.php new file mode 100644 index 0000000..1ff64df --- /dev/null +++ b/src/consulta_solr.php @@ -0,0 +1,97 @@ +search($query_content, 0, $limit); + } + catch (Exception $e) + { + // in production you'd probably log or email this error to an admin + // and then show a special message to the user but for this example + // we're going to show the full exception + die("SEARCH EXCEPTION
{$e->__toString()}
"); + } +} + +?> + + + PHP Solr Client Example + + +
+ + + +
+response->numFound; + $start = min(1, $total); + $end = min($limit, $total); +?> +
Results - of :
+
    +response->docs as $doc) + { +?> +
  1. + + $value) + { +?> + + + + + +
    +
  2. + +
+ + + \ No newline at end of file