public function execute($text, $fuzziness = 0, $field = 'autocomplete')
    {
        $params = [
            'index' => $this->index,
            'body'  => [
                'autocomplete-suggest' => [
                    'text'       => $text,
                    'completion' => [
                        'field'   => $field,
                        'fuzzy'   => [
                            'fuzziness' => $fuzziness,
                        ],
                    ],
                ],
            ],
        ];
        if ($this->siteManager->hasContext()) {
            $params['body']['autocomplete-suggest']['completion']['context'] = [
                'site_id' => $this->siteManager->getContext()->getId(),
            ];
        }

        $result = $this->client->suggest($params);

        $suggestions = [];
        foreach ($result['autocomplete-suggest'][0]['options'] as $suggestion) {
            $suggestions[] = filter_xss($suggestion['text']);
        }

        return new JsonResponse($suggestions);
    }