search: fix for collection preservation on search

* Addresses an issue when searching from within a collection and cc
  parameter was not preserved.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>