public function indexAction(Request $request)
    {
        $query = $request->get('query');
        $limit = $request->get('limit', 8);
        $start = $request->get('start', 0);

        $search = $this->get('phlexible_search.search');
        $results = $search->search($query);

        return new JsonResponse([
            'totalCount' => count($results),
            'results' => array_slice($results, $start, $limit),
        ]);
    }