2017 © Pedro Peláez
 

symfony-bundle elastica-bundle

Slim wrapper bundle for Elastica, when FOSElasticaBundle is too much.

image

wikibusiness/elastica-bundle

Slim wrapper bundle for Elastica, when FOSElasticaBundle is too much.

  • Friday, April 10, 2015
  • by mrbase
  • Repository
  • 4 Watchers
  • 0 Stars
  • 1,137 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ElasticaBundle

This is a simple Symfony wrapper for elastica. It allows you to configure elastica as a service in Symfony., (*1)

Installation

Install is done via composer:, (*2)

$ composer require wikibusiness/elastica-bundle

Add the bundle to your kernel:, (*3)

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new WB\ElasticaBundle\WBElasticaBundle(),
        );
        // ...
    }
}
// ...

Configure the bundle:, (*4)

# app/config/config.yml
wb_elastica:
    servers:
        main:
            host: 127.0.0.1
            port: 9200

Where main is a grouping., (*5)

If you want to use Elastica in cluster mode, the config section should look something like this:, (*6)

# app/config/config.yml
wb_elastica:
    servers:
        host_1:
            host: 127.0.0.1
            port: 9200
        host_2:
            host: 127.0.0.1
            port: 9201

All done, you can now access the service via the service wb_elastica.client like this:, (*7)

use Elastica\Search;

$client = $container->get('wb_elastica.client');
$search = new Search($client);
...

The Versions

10/04 2015

dev-master

9999999-dev https://github.com/wikibusiness/elastica-bundle

Slim wrapper bundle for Elastica, when FOSElasticaBundle is too much.

  Sources   Download

MIT

The Requires

 

elasticsearch symfony elastica

10/04 2015

1.2

1.2.0.0 https://github.com/wikibusiness/elastica-bundle

Slim wrapper bundle for Elastica, when FOSElasticaBundle is too much.

  Sources   Download

MIT

The Requires

 

elasticsearch symfony elastica

26/01 2015

1.1

1.1.0.0 https://github.com/wikibusiness/elastica-bundle

Slim wrapper bundle for Elastica, when FOSElasticaBundle is too much.

  Sources   Download

MIT

The Requires

 

elasticsearch symfony elastica

16/01 2015

1.0

1.0.0.0 https://github.com/wikibusiness/elastica-bundle

Slim wrapper bundle for Elastica, when FOSElasticaBundle is too much.

  Sources   Download

MIT

The Requires

 

elasticsearch symfony elastica