From e983c7472ca8edcab140fe22a797dcc15a210324 Mon Sep 17 00:00:00 2001 From: Guillaume DUBOST Date: Wed, 3 Jan 2018 10:25:14 +0100 Subject: [PATCH] [FEATURE#75414] On encode la query des messages Sinon elasticsearch il comprends pas bien --- src/ConversationManager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ConversationManager.php b/src/ConversationManager.php index 31c150a..1e8dd24 100644 --- a/src/ConversationManager.php +++ b/src/ConversationManager.php @@ -23,8 +23,9 @@ public function __construct(Application $app = null) public function findByQueryString($query, $from = 0, $size = 99999, $sort = "", $msg_query = "") { - $query = urlencode($query); - $response = $this->fireRequest("GET", "/search?q={$query}&messages_query={$msg_query}&from={$from}&size={$size}&sort={$sort}"); + $query = urlencode($query); + $msg_query = urlencode($msg_query); + $response = $this->fireRequest("GET", "/search?q={$query}&messages_query={$msg_query}&from={$from}&size={$size}&sort={$sort}"); $response["hits"] = array_map( function ($hit) {