Skip to content

Commit

Permalink
Allow multiple identical keys in query string (required for multisele…
Browse files Browse the repository at this point in the history
…ct facets)
  • Loading branch information
Zeno Zaplaic committed Apr 25, 2019
1 parent 20b39a7 commit a8436ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Funnelback/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\ClientInterface as HttpClientInterface;
use GuzzleHttp\Psr7;

/**
* Funnelback client.
Expand Down Expand Up @@ -156,13 +157,12 @@ public function allowedFormats()
*/
public function search($query, $params = [])
{

$params = array_merge(
['collection' => $this->getCollection()],
['query' => $query],
$params
);
$http_response = $this->getClient()->get(null, ['query' => $params]);
$http_response = $this->getClient()->get(null, ['query' => Psr7\build_query($params)]);

return new Response($http_response);
}
Expand Down

0 comments on commit a8436ec

Please sign in to comment.