src/Search/PullParsingSearchService.php
private function executeSearch($query, $limit, $start, $sort = null)
    {
        $qParam = new Parameter\Query($query);
        $groupParam = new Parameter\Group();
        $startParam = new Parameter\Start($start);
        $limitParam = new Parameter\Rows($limit);
        $typeParam = new Parameter\FilterQuery('type:event OR (type:actor AND category_id:8.15.0.0.0)');

        $params = array(
            $qParam,
            $groupParam,
            $limitParam,
            $startParam,
            $typeParam,
        );

        if ($this->includePrivateItems) {
            $privateParam = new Parameter\FilterQuery('private:*');

            $params[] = $privateParam;
        }

        if ($sort) {
            $params[] = new Parameter\Parameter('sort', $sort);
        }

        $response = $this->searchAPI2->search($params);

        return $response;
    }
private function executeSearch($query, $limit, $start, $sort = null)
    {
        $qParam = new Parameter\Query($query);
        $groupParam = new Parameter\Group();
        $startParam = new Parameter\Start($start);
        $limitParam = new Parameter\Rows($limit);
        $typeParam = new Parameter\FilterQuery('type:event OR (type:actor AND category_id:8.15.0.0.0)');

        $params = array(
            $qParam,
            $groupParam,
            $limitParam,
            $startParam,
            $typeParam,
        );

        if ($this->includePrivateItems) {
            $privateParam = new Parameter\FilterQuery('private:*');

            $params[] = $privateParam;
        }

        if ($sort) {
            $params[] = new Parameter\Parameter('sort', $sort);
        }

        $response = $this->searchAPI2->search($params);

        return $response;
    }
private function executeSearch ( $ query , $ limit , $ start , $ sort = null ) { $ qParam = new Parameter \ Query ( $ query ) ; $ groupParam = new Parameter \ Group ( ) ; $ startParam = new Parameter \ Start ( $ start ) ; $ limitParam = new Parameter \ Rows ( $ limit ) ; $ typeParam = new Parameter \ FilterQuery ( 'type:event OR (type:actor AND category_id:8.15.0.0.0)' ) ; $ params = array ( $ qParam , $ groupParam , $ limitParam , $ startParam , $ typeParam , ) ; if ( $ this -> includePrivateItems ) { $ privateParam = new Parameter \ FilterQuery ( 'private:*' ) ; $ params [ ] = $ privateParam ; } if ( $ sort ) { $ params [ ] = new Parameter \ Parameter ( 'sort' , $ sort ) ; } $ response = $ this -> searchAPI2 -> search ( $ params ) ; return $ response ; }
Finds items matching an arbitrary query.

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

@return \Guzzle\Http\Message\Response
Finds items matching an arbitrary query .