/**
  * @see \CultuurNet\Search\Service::search().
  */
 public function search($parameters = array())
 {
     DrupalCultureFeedSearchService::addLanguageParameter($parameters);
     $result = $this->service->search($parameters);
     DrupalCultureFeedSearchService::translateCategories($result->getItems());
     DrupalCultureFeedSearchService::setDetailCache($result);
     return $result;
 }
 /**
  * @see \CultuurNet\Search\ServiceInterface::search().
  */
 public function search($parameters = array())
 {
     DrupalCultureFeedSearchService::addLanguageParameter($parameters);
     $cid = 'search:' . md5(serialize($parameters));
     if ($cache = $this->cacheGet($cid)) {
         $result = $cache->data;
         DrupalCultureFeedSearchService::setDetailCache($result);
         return $result;
     }
     $result = $this->realSearchService->search($parameters);
     // Translate categories.
     DrupalCultureFeedSearchService::translateCategories($result);
     $this->cacheSet($cid, $result, REQUEST_TIME + CULTUREFEED_SEARCH_CACHE_EXPIRES);
     return $result;
 }