diff --git a/src/ConversationManager.php b/src/ConversationManager.php index b7d1c2c..31c150a 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, $sort = "") + public function findByQueryString($query, $from = 0, $size = 99999, $sort = "", $msg_query = "") { $query = urlencode($query); - $response = $this->fireRequest("GET", "/search?q={$query}&from={$from}&size={$size}&sort={$sort}"); + $response = $this->fireRequest("GET", "/search?q={$query}&messages_query={$msg_query}&from={$from}&size={$size}&sort={$sort}"); $response["hits"] = array_map( function ($hit) {