2017 © Pedro Peláez
 

library zrt-service-solr

Zend Framework 1 Solr package

image

zrt-lab/zrt-service-solr

Zend Framework 1 Solr package

  • Monday, June 30, 2014
  • by slovacus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • Ruby
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Zrt Service Solr

Why?

How to use

Add "zrtlab/zend-service-solr": "dev-develop" to the require section of your composer.json, include the composer autoloader and you're good to go., (*1)

una de las maneras en la que se puede generar la instancia del cliente de solr Es agregando los parametros de conexion en el application.ini:, (*2)


zrt.services.solr.endpoint.collection.host = 127.0.0.1 zrt.services.solr.endpoint.collection.port = 8080 zrt.services.solr.endpoint.collection.path = /solr zrt.services.solr.endpoint.collection.core = aviso zrt.services.solr.endpoint.collection.timeout = 5

Heredar el Boostrap de la siguiente clase Zrt_Application_Bootstrap_Bootstrap, (*3)

<?php 

    class Bootstrap extends Zrt_Application_Bootstrap_Bootstrap
    {

    ...

Por medio del Bootstrap se registra la instancia en el Zend_Registry con el index "zend.service.solr", (*4)

Examples


class Test_SolariumController extends Zend_Controller_Action { public function indexAction() { $client = Zend_Registry::get('zrt.service.solr'); $query = $client->createQuery($client::QUERY_SELECT); $resultset = $client->execute($query); echo 'NumFound: '.$resultset->getNumFound(); foreach ($resultset as $document) { echo '<hr/><table>'; foreach ($document as $field => $value) { if (is_array($value)) { $value = implode(', ', $value); } echo '<tr><th>' . $field . '</th><td>' . $value . '</td></tr>'; } echo '</table>'; } exit; } }

The Versions

30/06 2014

dev-master

9999999-dev https://github.com/zrtlab/zrtlab-service-solr

Zend Framework 1 Solr package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Luis Alberto Mayta

service framework zf1 zend solr

30/06 2014

dev-develop

dev-develop https://github.com/zrtlab/zrtlab-service-solr

Zend Framework 1 Solr package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Luis Alberto Mayta

service framework zf1 zend solr