The SearchBundle provides integration with LiipSearchBundle to provide a site wide search.
To focus our efforts onto a manageable number of packages, this package is currently not maintained. Security fixes and submitted bug fixes will still be released, but no new features should be expected. This bundle might have outdated documentation, there is no support from the CMF team and you should not expect bugs to be fixed.
If you want to help co-maintaining this package, tell us in a GitHub issue or in #symfony_cmf of the Symfony devs slack.
Finally, add the relevant routing to your configuration
cmf_search: resource: "@CmfSearchBundle/Resources/config/routing/phpcr/search.xml"
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8" ?> <routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd"> <import resource="@CmfSearchBundle/Resources/config/routing/phpcr/search.xml" /> </routes>
1 2 3 4 5 6 7
use Symfony\Component\Routing\RouteCollection; $collection = new RouteCollection(); $fileName = "@CmfSearchBundle/Resources/config/routing/phpcr/search.xml"; $collection->addCollection($loader->import($fileName)); return $collection;
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.