title: How to create a site-search in Symfony2?
body: <p>I started creating own Symfony bundles some weeks ago. I've created some entities with all the stuff around (also used the Doctrine CRUD-command), made some twig extensions and created new templates.</p>
  
  <p>Now I wanted to implement a Search Form in my Project. <strong>Are there some simlpe ways or some predefined Search-Bundles, which I can use in my Project?</strong></p>
  
  <p>I created my search-form manually (form without an entity). Then form is submitted via GET and the Results (selcted from the Entities in the Controller with a repository-search) are shown below the search form on the same page. </p>
  
  <p>Now I think, that it isn't good to have a very long URL, because of the Fields in the Form. I could go further and submit e.g. a <code>&lt;select&gt;</code> list with multiple entries selected and the URL would even be longer. </p>
  
  <p>Would it be a good choice to submit the Form via POST, "cut" the unnecessary "URL-Array-Elements" (+make the Query-Items more readable for humans) and redirect to the URL with the queries for showing the results?</p>
  
  <p>Edited: <strong>Are there any simple ways, how I can create a specific search form or entity-filter which I can use for custom entities?</strong> I like to use/create a function, where I can insert the entity, define the search-tags/filters and output a search-form? Has anyone created/used such search/filter-functions?</p>