src/Fadion/Bouncy/BouncyTrait.php
/**
     * Builds an arbitrary query.
     *
     * @param array $body
     * @return ElasticCollection
     */
Builds an arbitrary query.
@param array $body
@return ElasticCollection
Builds an arbitrary query . @param array $body @return ElasticCollection
public static function suggest(Array $body)
    {
        $instance = new static;
        $params = $instance->basicElasticParams();
        $params['body'] = $body;
        $response = $instance->getElasticClient()->search($params);
        return $response;
    }
public static function suggest ( Array $ body ) { $ instance = new static ; $ params = $ instance -> basicElasticParams ( ) ; $ params [ 'body' ] = $ body ; $ response = $ instance -> getElasticClient ( ) -> search ( $ params ) ; return $ response ; }
Builds an arbitrary query.
Builds an arbitrary query .