search: fix query string in add-to-search

* Splits terms by whitespace or quotes and join them
  with proper operator. (addresses #2252)

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