Skip to content

Commit 6a80e6f

Browse files
committed
BUGFIX: Do not escape unicode characters for fulltext search
For details see: https://discuss.neos.io/t/elasticsearch-special-chars-umlauts/4869
1 parent d87354c commit 6a80e6f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
declare(strict_types=1);
43

54
namespace Flowpack\ElasticSearch\ContentRepositoryAdaptor\Eel;
@@ -669,7 +668,7 @@ public function count()
669668
public function fulltext($searchWord, array $options = [])
670669
{
671670
// We automatically enable result highlighting when doing fulltext searches. It is up to the user to use this information or not use it.
672-
$this->request->fulltext(trim(json_encode($searchWord), '"'), $options);
671+
$this->request->fulltext(trim(json_encode($searchWord, JSON_UNESCAPED_UNICODE), '"'), $options);
673672
$this->request->highlight(150, 2);
674673

675674
return $this;

0 commit comments

Comments
 (0)