{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/2626","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/2626/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/2626/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/2626/events","html_url":"https://github.com/Sylius/Sylius/issues/2626","id":64513561,"number":2626,"title":"Search facets cannot be removed","user":{"login":"rtuin","id":360150,"avatar_url":"https://avatars.githubusercontent.com/u/360150?v=3","gravatar_id":"","url":"https://api.github.com/users/rtuin","html_url":"https://github.com/rtuin","followers_url":"https://api.github.com/users/rtuin/followers","following_url":"https://api.github.com/users/rtuin/following{/other_user}","gists_url":"https://api.github.com/users/rtuin/gists{/gist_id}","starred_url":"https://api.github.com/users/rtuin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtuin/subscriptions","organizations_url":"https://api.github.com/users/rtuin/orgs","repos_url":"https://api.github.com/users/rtuin/repos","events_url":"https://api.github.com/users/rtuin/events{/privacy}","received_events_url":"https://api.github.com/users/rtuin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-26T12:27:51Z","updated_at":"2015-04-01T10:35:39Z","closed_at":null,"body":"Hi there,\r\n\r\nJust started utilising the SearchBundle and I'm running into the problem that I can't remove the preset search facets that are configured in sylius.yml in the CoreBundle (in a sane way).\r\n\r\nMy current solution is not importing the sylius.yml from the CoreBundle at all and copying its contents to our own repo. But this makes it harder to upgrade when a new version is released.\r\n\r\nSo in CoreBundle's sylius.yml the following is defined:\r\n```yaml\r\nsylius_search:\r\n    filters:\r\n        facets:\r\n            taxons:\r\n                display_name: 'Basic categories'\r\n                type: terms\r\n                value: ~\r\n            price:\r\n                display_name: 'Available prices'\r\n                type: range\r\n                values:\r\n                    - { from: 0, to: 2000}\r\n                    - { from: 2001, to: 5000}\r\n                    - { from: 5001, to: 10000}\r\n            made_of:\r\n                display_name: 'Material'\r\n                type: terms\r\n                value: ~\r\n            color:\r\n                display_name: 'Available colors'\r\n                type: terms\r\n                value: ~\r\n```\r\n\r\nThe `made_of` and `color` facets are not in our system, so I want them out of there.\r\n\r\nMy questions are:\r\n1. Is my current solution the best way?\r\n2. How can we optimise this?\r\n\r\nOf course, I'm willing to do the coding, but I'm unsure what's the best way to solve this."},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/88434533","html_url":"https://github.com/Sylius/Sylius/issues/2626#issuecomment-88434533","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/2626","id":88434533,"user":{"login":"nicolasricci","id":208481,"avatar_url":"https://avatars.githubusercontent.com/u/208481?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasricci","html_url":"https://github.com/nicolasricci","followers_url":"https://api.github.com/users/nicolasricci/followers","following_url":"https://api.github.com/users/nicolasricci/following{/other_user}","gists_url":"https://api.github.com/users/nicolasricci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasricci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasricci/subscriptions","organizations_url":"https://api.github.com/users/nicolasricci/orgs","repos_url":"https://api.github.com/users/nicolasricci/repos","events_url":"https://api.github.com/users/nicolasricci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasricci/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T10:35:39Z","updated_at":"2015-04-01T10:35:39Z","body":"@pjedrzejewski removing merging would be a good idea because i bumped into the same issue with price facet and I had to define it under another key name. (see #2591)\r\n@rtuin the only solution at the moment is overriding the sylius.yml search filters in your own bundle, which makes sense anyway since you will probably want to add your own facets and facet_groups depending on your product model."}}