private function getValues(\Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponse $response)
    {
        $bucket = $response->getAggregations()->getBucket('search_terms');

        return $bucket !== null ? $bucket->getValues() : [];
    }
private function getValues(\Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponse $response)
    {
        $bucket = $response->getAggregations()->getBucket('search_terms');

        return $bucket !== null ? $bucket->getValues() : [];
    }
private function getValues ( \ Smile \ ElasticsuiteCore \ Search \ Adapter \ Elasticsuite \ Response \ QueryResponse $ response ) { $ bucket = $ response -> getAggregations ( ) -> getBucket ( 'search_terms' ) ; return $ bucket !== null ? $ bucket -> getValues ( ) : [ ] ; }
Return the bucket values from the main aggregation

@param \Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponse $response ES Query response.

@return \Magento\Framework\Api\Search\AggregationValueInterface[]
Return the bucket values from the main aggregation