private function loadSearchMetadata(EntityMetadata $metadata)
    {
        if (false === $metadata->isSearchEnabled()) {
            return $metadata;
        }
        $clientKey = $metadata->search->getKey();
        $searchFactory = $this->driver->getSearchMetadataFactory($clientKey);

        $searchFactory->handleLoad($metadata);
        $searchFactory->handleValidate($metadata);
        return $metadata;
    }
private function loadSearchMetadata(EntityMetadata $metadata)
    {
        if (false === $metadata->isSearchEnabled()) {
            return $metadata;
        }
        $clientKey = $metadata->search->getKey();
        $searchFactory = $this->driver->getSearchMetadataFactory($clientKey);

        $searchFactory->handleLoad($metadata);
        $searchFactory->handleValidate($metadata);
        return $metadata;
    }
private function loadSearchMetadata ( EntityMetadata $ metadata ) { if ( false === $ metadata -> isSearchEnabled ( ) ) { return $ metadata ; } $ clientKey = $ metadata -> search -> getKey ( ) ; $ searchFactory = $ this -> driver -> getSearchMetadataFactory ( $ clientKey ) ; $ searchFactory -> handleLoad ( $ metadata ) ; $ searchFactory -> handleValidate ( $ metadata ) ; return $ metadata ; }
Handles search specific metadata loading.

@param   EntityMetadata  $metadata
@return  EntityMetadata
Handles search specific metadata loading .