src/Query/Query.php
/**
   * Apply search query and return the results
   *
   * @param string $query
   * @param bool $documentsAsArray
   *
   * @return SearchResult
   */
Apply search query and return the results
@param string $query
@param bool $documentsAsArray


Apply search query and return the results @param string $query @param bool $documentsAsArray
public function search( $query = '', $documentsAsArray = false ) {
    $rawResult = $this->client->rawCommand( 'FT.SEARCH', $this->searchQueryArgs( $query ) );
    return SearchResult::searchResult(
      $rawResult,
      $documentsAsArray,
      true,
      $this->withScores !== '',
      $this->withPayloads !== ''
    );
  }
public function search ( $ query = '' , $ documentsAsArray = false ) { $ rawResult = $ this -> client -> rawCommand ( 'FT.SEARCH' , $ this -> searchQueryArgs ( $ query ) ) ; return SearchResult :: searchResult ( $ rawResult , $ documentsAsArray , true , $ this -> withScores !== '' , $ this -> withPayloads !== '' ) ; }
Apply search query and return the results
 @param string $query
 @param bool $documentsAsArray
Apply search query and return the results @param string $query @param bool $documentsAsArray