lakion / sylius-elastic-search-bundle
Elastic search integration for Sylius.
Installs: 327
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 12
Forks: 44
Open Issues: 11
Type:sylius-bundle
Requires
- php: ^5.6|^7.0
- friendsofsymfony/elastica-bundle: ^4.0
- ongr/elasticsearch-dsl: ^2.0
- sylius/sylius: dev-master
Requires (Dev)
- behat/behat: ^3.2
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^0.3
- friends-of-behat/cross-container-extension: ^0.2
- friends-of-behat/performance-extension: ^1.0
- friends-of-behat/service-container-extension: ^0.3
- friends-of-behat/symfony-extension: ^0.2.1
- friends-of-behat/variadic-extension: ^0.1
- lakion/mink-debug-extension: ^1.2.3
- matthiasnoback/symfony-config-test: ^2.1
- matthiasnoback/symfony-dependency-injection-test: ^1.1
- php-http/guzzle6-adapter: ^1.1
- phpspec/phpspec: ^3.2
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2024-12-21 21:08:46 UTC
README
Usage
-
Install it:
$ composer require lakion/sylius-elastic-search-bundle
-
Install elastic search server:
$ brew install elasticsearch@2.4
-
Run elastic search server:
$ elasticsearch
-
Add this bundle to
AppKernel.php
:new \FOS\ElasticaBundle\FOSElasticaBundle(), new \Lakion\SyliusElasticSearchBundle\LakionSyliusElasticSearchBundle(),
-
Create/Setup database:
$ app/console do:da:cr $ app/console do:sch:cr $ app/console syl:fix:lo
-
Populate your elastic search server with command or your custom code:
$ app/console fos:elastic:pop
-
Import config file in
app/config/config.yml
for default filter set configuration:imports: - { resource: "@LakionSyliusElasticSearchBundle/Resources/config/app/config.yml" }
-
Import routing files in
app/config/routing.yml
:sylius_search: resource: "@LakionSyliusElasticSearchBundle/Resources/config/routing.yml"
-
Configuration reference:
lakion_sylius_elastic_search: filter_sets: mugs: filters: product_options: type: option options: code: mug_type product_price: type: price