Skip to content

ElasticSearch integration with advanced filtering options for Sylius eCommerce applications.

Notifications You must be signed in to change notification settings

Niiko/SyliusElasticSearchBundle

 
 

Repository files navigation

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

About

ElasticSearch integration with advanced filtering options for Sylius eCommerce applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.6%
  • Gherkin 7.0%
  • HTML 0.4%