Backup #1933
| ID | 1933 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/partials/search-results.php |
| Version | 1 |
| Typ |
modified |
| Größe | 1.5 KB |
| Hash | 8fdbd9b651c1befb6f7d86017105b274aa7898274f58fd7117383d7ecccca83a |
| Datum | 2025-12-28 01:22:57 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php
declare(strict_types=1);
// @responsibility: HTMX-Partial für semantische Suchergebnisse
?>
<?php if ($query !== '' && !empty($results)): ?>
<h2>Ergebnisse fuer "<?= htmlspecialchars($query) ?>"</h2>
<p class="text-muted"><?= count($results) ?> Treffer gefunden.</p>
<table data-sortable>
<thead>
<tr>
<th data-sort="rank">#</th>
<th data-sort="score">Score</th>
<th data-sort="filename">Dokument</th>
<th data-sort="tokens">Tokens</th>
<th data-sort="content">Inhalt</th>
</tr>
</thead>
<tbody>
<?php foreach ($results as $i => $r): ?>
<tr>
<td><?= $i + 1 ?></td>
<td><span class="badge badge--success"><?= number_format($r['score'] * 100, 1) ?>%</span></td>
<td>
<a href="/semantic-explorer/chunks/<?= $r['id'] ?>">#<?= $r['id'] ?></a>
<br><small><a href="/semantic-explorer/dokumente/<?= $r['document_id'] ?>"><?= htmlspecialchars($r['filename']) ?></a></small>
</td>
<td><?= $r['token_count'] ?></td>
<td><?= htmlspecialchars(substr($r['content'], 0, 150)) ?>...</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php elseif ($query !== ''): ?>
<div class="empty-state empty-state--small">
<p>Keine Ergebnisse fuer "<?= htmlspecialchars($query) ?>" gefunden.</p>
<p class="text-muted">Stellen Sie sicher, dass Dokumente mit Embeddings vorliegen.</p>
</div>
<?php endif; ?>
Vollständig herunterladen
Aktionen
← Zurück zur Übersicht