{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/Api\/ExplorerController.php",
"offset": 240,
"limit": 50
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/Api\/ExplorerController.php",
"content": " \/**\n * POST \/api\/v1\/explorer\/suche\n *\/\n public function suche(): void\n {\n try {\n $input = $this->getJsonInput();\n\n $query = trim($input['query'] ?? '');\n if ($query === '') {\n $this->json(['success' => false, 'error' => 'Query ist erforderlich'], 400);\n\n return;\n }\n\n $filters = [];\n if (!empty($input['category'])) {\n $filters['taxonomy_category'] = $input['category'];\n }\n\n $limit = min((int) ($input['limit'] ?? 10), 50);\n\n $search = new HybridSearchService();\n $results = $search->search($query, $filters, $limit);\n $suggestions = $search->suggestRelatedSearches($results);\n\n $this->json([\n 'success' => true,\n 'data' => [\n 'query' => $query,\n 'results' => $results,\n 'suggestions' => $suggestions,\n 'count' => count($results),\n ],\n ]);\n } catch (\\Exception $e) {\n $this->jsonError($e->getMessage());\n }\n }\n}\n",
"numLines": 41,
"startLine": 240,
"totalLines": 280
}
}
}