public function searchTags($searchString, $translation, $useAlwaysAvailable = true, $offset = 0, $limit = -1)
    {
        $tags = $this->gateway->getTagsByKeyword($searchString, $translation, $useAlwaysAvailable, false, $offset, $limit);
        $totalCount = $this->gateway->getTagsByKeywordCount($searchString, $translation, $useAlwaysAvailable, false);

        return new SearchResult(
            [
                'tags' => $this->mapper->extractTagListFromRows($tags),
                'totalCount' => $totalCount,
            ]
        );
    }
public function searchTags($searchString, $translation, $useAlwaysAvailable = true, $offset = 0, $limit = -1)
    {
        $tags = $this->gateway->getTagsByKeyword($searchString, $translation, $useAlwaysAvailable, false, $offset, $limit);
        $totalCount = $this->gateway->getTagsByKeywordCount($searchString, $translation, $useAlwaysAvailable, false);

        return new SearchResult(
            [
                'tags' => $this->mapper->extractTagListFromRows($tags),
                'totalCount' => $totalCount,
            ]
        );
    }
public function searchTags ( $ searchString , $ translation , $ useAlwaysAvailable = true , $ offset = 0 , $ limit = - 1 ) { $ tags = $ this -> gateway -> getTagsByKeyword ( $ searchString , $ translation , $ useAlwaysAvailable , false , $ offset , $ limit ) ; $ totalCount = $ this -> gateway -> getTagsByKeywordCount ( $ searchString , $ translation , $ useAlwaysAvailable , false ) ; return new SearchResult ( [ 'tags' => $ this -> mapper -> extractTagListFromRows ( $ tags ) , 'totalCount' => $ totalCount , ] ) ; }
Searches for tags.

@param string $searchString
@param string $translation
@param bool $useAlwaysAvailable
@param int $offset The start offset for paging
@param int $limit The number of tags returned. If $limit = -1 all tags starting at $offset are returned

@return \Netgen\TagsBundle\SPI\Persistence\Tags\SearchResult
Searches for tags .