public function getSlice( $offset, $length, $params = array() )
    {
        $searchResult = $this->handler->search( $this->form, $this->criteriaBuilder, $this->resultConverter, $offset, $length, $params );
        if ( !isset( $this->nbResults ) )
        {
            $this->nbResults = $searchResult->totalCount;
        }

        return $searchResult->searchHits;
    }
public function getSlice( $offset, $length, $params = array() )
    {
        $searchResult = $this->handler->search( $this->form, $this->criteriaBuilder, $this->resultConverter, $offset, $length, $params );
        if ( !isset( $this->nbResults ) )
        {
            $this->nbResults = $searchResult->totalCount;
        }

        return $searchResult->searchHits;
    }
public function getSlice ( $ offset , $ length , $ params = array ( ) ) { $ searchResult = $ this -> handler -> search ( $ this -> form , $ this -> criteriaBuilder , $ this -> resultConverter , $ offset , $ length , $ params ) ; if ( ! isset ( $ this -> nbResults ) ) { $ this -> nbResults = $ searchResult -> totalCount ; } return $ searchResult -> searchHits ; }
Returns as slice of the results, as SearchHit objects.

@param integer $offset The offset.
@param integer $length The length.

@return \eZ\Publish\API\Repository\Values\Content\Search\SearchHit The slice.
Returns as slice of the results as SearchHit objects .