Skip to content

Commit

Permalink
[FEATURE#75414] On encode la query des messages
Browse files Browse the repository at this point in the history
Sinon elasticsearch il comprends pas bien
  • Loading branch information
Guillaume DUBOST committed Jan 3, 2018
1 parent 3bec790 commit e983c74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ConversationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e983c74

Please sign in to comment.