mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-15 17:16:29 +03:00
Add Sylius Search PLugin recipe
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
imports:
|
||||
- { resource: "@MonsieurBizSyliusSearchPlugin/Resources/config/config.yaml" }
|
||||
|
||||
monsieur_biz_sylius_search:
|
||||
files:
|
||||
search: '%kernel.project_dir%/vendor/monsieurbiz/sylius-search-plugin/src/Resources/config/elasticsearch/queries/search.yaml'
|
||||
instant: '%kernel.project_dir%/vendor/monsieurbiz/sylius-search-plugin/src/Resources/config/elasticsearch/queries/instant.yaml'
|
||||
taxon: '%kernel.project_dir%/vendor/monsieurbiz/sylius-search-plugin/src/Resources/config/elasticsearch/queries/taxon.yaml'
|
||||
documentable_classes :
|
||||
- 'App\Entity\Product\Product'
|
||||
grid:
|
||||
limits:
|
||||
taxon: [9, 18, 27]
|
||||
search: [9, 18, 27]
|
||||
default_limit:
|
||||
taxon: 9
|
||||
search: 9
|
||||
instant: 10
|
||||
sorting:
|
||||
taxon: ['name', 'price', 'created_at']
|
||||
search: ['name', 'price', 'created_at']
|
||||
filters:
|
||||
apply_manually: false # Will refresh the filters depending on applied filters after you apply it manually
|
||||
use_main_taxon: true # Use main taxon for the taxon filter, else use the taxons
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
monsieurbiz_search_plugin:
|
||||
resource: "@MonsieurBizSyliusSearchPlugin/Resources/config/routing.yaml"
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"bundles": {
|
||||
"MonsieurBiz\\SyliusSearchPlugin\\MonsieurBizSyliusSearchPlugin": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"copy-from-package": {
|
||||
"src/Resources/templates/": "templates/"
|
||||
},
|
||||
"env": {
|
||||
"MONSIEURBIZ_SEARCHPLUGIN_ES_HOST": "localhost",
|
||||
"MONSIEURBIZ_SEARCHPLUGIN_ES_PORT": "9200"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user