From e6f3c0daae989a8f0a0ec39b88e54dc6dd4e5596 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 15 Mar 2012 17:19:52 +0000 Subject: [PATCH] =?UTF-8?q?Tarea=20#836=20->=20B=C3=BAsqueda=20sobre=20los?= =?UTF-8?q?=20ficheros=20de=20CV?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk@129 e2b1556b-49f8-d141-9351-52d6861a72d9 --- src/consulta_solr.php | 97 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 src/consulta_solr.php 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