src/Query/Query.php
/**
   * Apply aggregation on redis query
   *
   * @arg string $query redis query to be run
   * @arg boolean $documentAsArray
   * @return SearchResult the result of aggregation
   */
Apply aggregation on redis query
@arg string $query redis query to be run
@arg boolean $documentAsArray
@return SearchResult the result of aggregation
Apply aggregation on redis query @arg string $query redis query to be run @arg boolean $documentAsArray @return SearchResult the result of aggregation
public function aggregate( $query, $documentsAsArray = false ) {
    $rawResult = $this->client->rawCommand( 'FT.AGGREGATE', $this->aggregateQueryArgs( $query ) );
    return SearchResult::searchResult(
      $rawResult,
      $documentsAsArray,
      false
    );
  }
public function aggregate ( $ query , $ documentsAsArray = false ) { $ rawResult = $ this -> client -> rawCommand ( 'FT.AGGREGATE' , $ this -> aggregateQueryArgs ( $ query ) ) ; return SearchResult :: searchResult ( $ rawResult , $ documentsAsArray , false ) ; }
Apply aggregation on redis query
 @arg string $query redis query to be run
 @arg boolean $documentAsArray
 @return SearchResult the result of aggregation
Apply aggregation on redis query @arg string $query redis query to be run @arg boolean $documentAsArray @return SearchResult the result of aggregation