This Bundle provides Simple Search API for Content in Files. It is implemented for Symfony 2.8. It works the following way - there are 3 parameters of the search function:
- Search Content:* - the content that you are looking for
- File Type: - the file type. If you want to restrict the search for specific file type. Must not put dot (.) for the file type.
- Search Path: - path you want to make the search. Starts from the path of the project and has for options all path in depth 2 dirs inside the starting path.
Download the Zip File from Github: https://github.com/emiliyank/SimpleSearchApiBundle Extract files and rename the main folder to 'SearchBundle'(remove '-master'). Place the folder in 'src/Emo/'(you will have to create the folder with the vendor name Emo). Structure after this: 'src/Emo/SimpleSearchApiBundle/...' of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php file of your project:
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Emo\SimpleSearchApiBundle\EmoSimpleSearchApiBundle(),
);
// ...
}
// ...
}In your project /config/routing.yml file add the following: //... emo_simple_search_api: resource: "@EmoSimpleSearchApiBundle/Controller/" type: annotation prefix: / //...
This bundle is under the MIT license. See the complete license in the bundle: LICENSE