2017 © Pedro Peláez
 

symfony-bundle solrclient-bundle

QIMNET SolrClient bundle (alpha)

image

qimnet/solrclient-bundle

QIMNET SolrClient bundle (alpha)

  • Friday, March 8, 2013
  • by qimnet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Qimnet SolrClientBundle

Used to integrate the PECL SolrClient extension into Symfony 2., (*1)

Features

  • Automatic indexation and removal of Doctrine entities
  • Realtime indexation or batch indexation

Configuration

qimnet_solr_client:          

    # list of entities that should be indexed by the batch command.
    entities:             [] 

    # see the SolrClient documentation on http://php.met for details about the options.
    client_options:       
        port:                 8080 
        hostname:             localhost 
        secure:               false 
        path:                 ~ 
        wt:                   ~ 
        login:                ~ 
        password:             ~ 
        proxy_host:           ~ 
        proxy_port:           ~ 
        proxy_login:          ~ 
        proxy_password:       ~ 
        timeout:              ~ 
        ssl_cert:             ~ 
        ssl_key:              ~ 
        ssl_keypassword:      ~ 
        ssl_cainfo:           ~ 
        ssl_capath:           ~ 

Doctrine Entity Annotations

Doctrine entities can be automatically inserted by using the following annotations., (*2)

    use Qimnet\QimnetSolrClientBundle\Annotation as Solr;

    class Entity
    {
        /**
        * @Solr\Indexable("id"=true)
        **/
        protected $id;
        /**
        * @Solr\Indexable
        **/
        protected $content;
        /**
        * @Solr\NeedsIndex
        **/
        protected $needs_index;
        /**
        * @Solr\Indexable(solr_name="tag")
        **/
        public function getTags() {
            return array("tag1", "tag2");
        }
    }

Batch index update

If no @Solr\NeedsIndex is found in the entity, the index is updated automatically., (*3)

To launch the indexation manually, use the qimnet:solr:index command., (*4)

Services

The following services are defined :, (*5)

qimnet.solr.client                            container SolrClient
qimnet.solr.indexable                         container Qimnet\SolrClientBundle\Doctrine\IndexableListener
qimnet.solr.indexer                           container Qimnet\SolrClientBundle\Doctrine\Indexer

License

Qimnet SolrClient is available under the MIT license., (*6)

copyright Antoine Guigan, 2012, (*7)

QIMNET, (*8)

The Versions

08/03 2013

dev-master

9999999-dev http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

08/03 2013

v1.2

1.2.0.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

08/03 2013

v1.1.4

1.1.4.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

10/01 2013

v1.1.3

1.1.3.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

28/11 2012

1.0.3

1.0.3.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

20/09 2012

1.0.2

1.0.2.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

20/09 2012

1.0.1

1.0.1.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr

20/09 2012

1.0.0

1.0.0.0 http://qimnet.com

QIMNET SolrClient bundle (alpha)

  Sources   Download

MIT

The Requires

 

The Development Requires

solr