Skip to content

Commit 30157c1

Browse files
authored
BUGFIX: Fulltext query is broken
The fix introduced to escape the query also add quote around, so it's not a full text query anymore. This change trim the output of json_encode to remove the quotes.
1 parent 5d13cc8 commit 30157c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public function count()
616616
public function fulltext($searchWord)
617617
{
618618
// We automatically enable result highlighting when doing fulltext searches. It is up to the user to use this information or not use it.
619-
$this->request->fulltext(json_encode($searchWord));
619+
$this->request->fulltext(trim(json_encode($searchWord), '"'));
620620
$this->request->highlight(150, 2);
621621

622622
return $this;

0 commit comments

Comments
 (0)