rewrite collection::search and searchData