title: How to add custom condition to Sonata global search feature
body: <p>I would like to add a custom condition to the queries which are generated by Sonata Search feature. The problem is that i have 'status' column which should be set as "active". On the List View i do not have any problem because I am able to set:</p>
  
  <pre><code>protected $datagridValues = array (
      'status' =&gt; array ('type' =&gt; 1, 'value' =&gt; Status::ACTIVE)
  );
  </code></pre>
  
  <p>and then all queries check if the status field is set properly.
  But the problem is with global search. I can override SearchHandler and force desired behavior, but i can't change any files from vendor/ directory, so i have two questions.</p>
  
  <ol>
  <li>How can i inject my own SearchHandler, which configuration file i need to change and how</li>
  <li>Maybe there is a simpler way to develope needed solution?</li>
  </ol>