search:fix query string in add-to-search functionality [continue]

Continue pull request #2305 here (because of the wrong branching strategy).
example for future ...
```javascript
$('[data-form-match]').each(function(element) {
   var matcher = $(element).data('form-match'),
       replacer = $(element).data('form-replacer');
   query.push(...);
});
```