Skip to content

Commit

Permalink
Merge pull request #29 from Leosten/feature/53902-2
Browse files Browse the repository at this point in the history
[FEATURE#53902] ajout de sort optionnel proxy v2
  • Loading branch information
Guillaume Dubost authored Jun 27, 2017
2 parents 550a9bd + 890cf67 commit 3d4b0d9
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 @@ -21,10 +21,10 @@ 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);
$response = $this->fireRequest("GET", "/search?q={$query}&from={$from}&size={$size}");
$response = $this->fireRequest("GET", "/search?q={$query}&from={$from}&size={$size}&sort={$sort}");

$response["hits"] = array_map(
function ($hit) {
Expand Down

0 comments on commit 3d4b0d9

Please sign in to comment.