Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 1.67 KB

README.md

File metadata and controls

73 lines (55 loc) · 1.67 KB

Sylius ElasticSearchBundle

Elastic search for Sylius. Build status on Linux

Usage

  1. Install it:

    $ composer require lakion/sylius-elastic-search-bundle
  2. Install elastic search server:

    $ brew install [email protected]
  3. Run elastic search server:

    $ elasticsearch
  4. Add this bundle to AppKernel.php:

    new \FOS\ElasticaBundle\FOSElasticaBundle(),
    new \Lakion\SyliusElasticSearchBundle\LakionSyliusElasticSearchBundle(),
  5. Create/Setup database:

    $ app/console do:da:cr
    $ app/console do:sch:cr
    $ app/console syl:fix:lo
  6. Populate your elastic search server with command or your custom code:

    $ app/console fos:elastic:pop
  7. Import config file in app/config/config.yml for default filter set configuration:

    imports:
       - { resource: "@LakionSyliusElasticSearchBundle/Resources/config/app/config.yml" }
  8. Import routing files in app/config/routing.yml:

    sylius_search:
        resource: "@LakionSyliusElasticSearchBundle/Resources/config/routing.yml"
  9. Configuration reference:

    lakion_sylius_elastic_search:
        filter_sets:
            mugs:
                filters:
                    product_options:
                        type: option
                        options:
                            code: mug_type
                    product_price:
                        type: price