diff --git a/src/ConversationManager.php b/src/ConversationManager.php index 9ffa9b7..b7d1c2c 100644 --- a/src/ConversationManager.php +++ b/src/ConversationManager.php @@ -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) {