Skip to content

ElasticSearch integration with advanced filtering options for Sylius eCommerce applications.

Notifications You must be signed in to change notification settings

Lakion/SyliusElasticSearchBundle

Repository files navigation

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 elasticsearch@2.4
  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

About

ElasticSearch integration with advanced filtering options for Sylius eCommerce applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published