Skip to content

Commit

Permalink
Merge pull request #28 from Leosten/feature/53902
Browse files Browse the repository at this point in the history
[FEATURE#53902] ajout de sort optionnel
  • Loading branch information
Guillaume Dubost authored Jun 27, 2017
2 parents 01efd9a + fde0867 commit 87e4c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConversationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public function __construct(Application $app = null)
$this->app = $app;
}

public function findByQueryString($query, $from = 0, $size = 99999)
public function findByQueryString($query, $from = 0, $size = 99999, $sort = "")
{
$query = urlencode($query);
$request = $this->app["conversation_proxy"]
->get("/search?q={$query}&from={$from}&size={$size}");
->get("/search?q={$query}&from={$from}&size={$size}&sort={$sort}");
$response = $this->fireRequest($request, $this->app["cookies.authenticator"]);

$response["hits"] = array_map(
Expand Down

0 comments on commit 87e4c71

Please sign in to comment.