Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.64 KB

README.md

File metadata and controls

67 lines (51 loc) · 1.64 KB

Sylius ElasticSearchBundle

Build status on Linux Elastic search for Sylius.

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. Populate your elastic search server with command or your custom code:

    $ app/console fos:elastic:pop
  5. Add this bundle to AppKernel.php:

    new \Lakion\SyliusElasticSearchBundle\LakionSyliusElasticSearchBundle(),
  6. Import config file in app/config/config.yml:

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

    sylius_search:
        resource: "@LakionSyliusElasticSearchBundle/Resources/config/routing.yml"
  8. Configure:

    lakion_sylius_elastic_search:
        filter_sets:
            mug_type_and_stickers_set:
                filters:
                    product_options:
                        type: options
                        options:
                            codes: [mug_type, sticker_size]
                            filtering_key: product_option_code
                    product_price:
                        type: price
                        options:
                            filtering_key: product_price_range