{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/SystemExplorerController.php",
"offset": 326,
"limit": 40
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/SystemExplorerController.php",
"content": " }\n\n \/**\n * GET \/explorer\/suche\n * Suche-Formular\n *\/\n public function suche(): void\n {\n $query = $this->getString('q');\n $category = $this->getString('category');\n $limit = $this->getLimit(20, 10);\n\n $results = [];\n $suggestions = [];\n\n if ($query !== '') {\n $filters = [];\n if ($category !== '') {\n $filters['taxonomy_category'] = $category;\n }\n\n $search = new HybridSearchService();\n $results = $search->search($query, $filters, $limit);\n $suggestions = $search->suggestRelatedSearches($results);\n }\n\n \/\/ Kategorien für Filter\n $categories = $this->db->query(\n 'SELECT DISTINCT taxonomy_category FROM dokumentation_chunks\n WHERE taxonomy_category IS NOT NULL ORDER BY taxonomy_category'\n )->fetchAll(\\PDO::FETCH_COLUMN);\n\n $this->view('system-explorer.suche', [\n 'title' => 'Dokumentation durchsuchen',\n 'query' => $query,\n 'results' => $results,\n 'suggestions' => $suggestions,\n 'categories' => $categories,\n 'currentCategory' => $category,\n 'limit' => $limit,",
"numLines": 40,
"startLine": 326,
"totalLines": 397
}
}
}