src/Search/CachedDefaultSearchService.php
public function search(string $query, $limit = 30, $start = 0, $sort = null)
    {
        if ($query == '*.*' && $limit == 30 && $start == 0 && $sort == 'lastupdated desc') {
            $result = $this->fetchFromCache();

            if (null === $result) {
                $result = $this->search->search($query, $limit, $start, $sort);
                $this->saveToCache($result);
            }

            return $result;
        } else {
            return $this->search->search($query, $limit, $start, $sort);
        }
    }
public function search(string $query, $limit = 30, $start = 0, $sort = null)
    {
        if ($query == '*.*' && $limit == 30 && $start == 0 && $sort == 'lastupdated desc') {
            $result = $this->fetchFromCache();

            if (null === $result) {
                $result = $this->search->search($query, $limit, $start, $sort);
                $this->saveToCache($result);
            }

            return $result;
        } else {
            return $this->search->search($query, $limit, $start, $sort);
        }
    }
public function search ( string $ query , $ limit = 30 , $ start = 0 , $ sort = null ) { if ( $ query == '*.*' && $ limit == 30 && $ start == 0 && $ sort == 'lastupdated desc' ) { $ result = $ this -> fetchFromCache ( ) ; if ( null === $ result ) { $ result = $ this -> search -> search ( $ query , $ limit , $ start , $ sort ) ; $ this -> saveToCache ( $ result ) ; } return $ result ; } else { return $ this -> search -> search ( $ query , $ limit , $ start , $ sort ) ; } }
Find UDB3 data based on an arbitrary query.

@param string $query
An arbitrary query.
@param int $limit
How many items to retrieve.
@param int $start
Offset to start from.

@return array|\JsonSerializable
A JSON-LD array or JSON serializable object.
Find UDB3 data based on an arbitrary query .