Go to file
2011-04-21 19:34:39 -07:00
Command Improve search command 2011-04-21 12:18:48 -07:00
DependencyInjection Add support for Doctrine ORM 2011-04-21 19:34:39 -07:00
Finder Fix mapped finder 2011-04-20 14:34:02 -07:00
Mapper Introduce builtin doctrine provider and finder 2011-04-20 13:53:59 -07:00
Paginator Add raw and doctrine paginator adapter implementations 2011-04-14 16:23:10 -07:00
Provider Introduce builtin doctrine provider and finder 2011-04-20 13:53:59 -07:00
Resources Add support for Doctrine ORM 2011-04-21 19:34:39 -07:00
Transformer The automatic object transformer now normalizes values 2011-04-21 12:19:20 -07:00
FOQElasticaBundle.php Indroduce populator service, add providers compiler pass 2011-04-11 19:26:10 -07:00
IndexManager.php Give the index manager a default index 2011-04-12 15:15:48 -07:00
MapperInterface.php Add MapperInterface with a doctrine implementation 2011-04-14 16:22:14 -07:00
MappingSetter.php Introduce mapping setter 2011-04-15 12:17:41 -07:00
Populator.php Introduce builtin doctrine provider and finder 2011-04-20 13:53:59 -07:00
README.md Introduce the Index manager and setup dependency injection 2011-04-10 14:08:51 -07:00
Reseter.php Fix issue in reseter when an index does not exist yet 2011-04-15 14:28:51 -07:00

Elastica integration in Symfony2

Installation

Install elasticsearch

http://www.elasticsearch.org/guide/reference/setup/installation.html

Install Elastica

Download

With submodule: git submodule add git://github.com/ruflin/Elastica vendor/elastica

With clone: git clone git://github.com/ruflin/Elastica vendor/elastica

Register autoloading

// app/autoload.php

$loader->registerPrefixes(array(
    ...
    'Elastica' => __DIR__.'/../vendor/elastica/lib',
));

Install ElasticaBundle

Download

With submodule: git submodule add git://github.com/Exercise/ElasticaBundle src/Exercise/ElasticaBundle

With clone: git clone git://github.com/Exercise/ElasticaBundle src/Exercise/ElasticaBundle

Register autoloading

// app/autoload.php

$loader->registerNamespaces(array(
    ...
    'FOQ' => __DIR__.'/../src',
));

Register the bundle

// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new FOQ\ElasticaBundle\FOQElasticaBundle(),
        // ...
    );
}