From 785e89a01c51ff09cdd55dea115069c196abef22 Mon Sep 17 00:00:00 2001 From: Leonard LEUNG CHONG WO Date: Mon, 23 Oct 2017 11:10:02 +0200 Subject: [PATCH] [FEATURE#56025] ajout de msg query une query optionnelle pour chercher dans les messages des conversations --- src/ConversationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {