search: fix query string in add-to-search functionality

* Joins terms with proper operator (fixes #2252)

Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>