This commit is contained in:
2025-10-17 17:19:45 +02:00
parent c2b0351598
commit 5666dc4a4b
3 changed files with 19 additions and 8 deletions
+5 -1
View File
@@ -1990,7 +1990,11 @@ async fn quickwit_search(endpoint: &str, index: &str, query: &str) -> anyhow::Re
} }
} }
debug!(total_hits = total_hits, unique_ids = doc_ids.len(), "quickwit search completed"); debug!(
total_hits = total_hits,
unique_ids = doc_ids.len(),
"quickwit search completed"
);
Ok(doc_ids) Ok(doc_ids)
} }
+9 -3
View File
@@ -394,13 +394,19 @@ const DetailPanel = ({
setOcrLoading(true); setOcrLoading(true);
setOcrError(null); setOcrError(null);
try { try {
let url = resolveDocumentAssetUrl(singleDoc, 'ocr-text', { let entry = asset;
let url = entry?.url ||
resolveDocumentAssetUrl(singleDoc, 'ocr-text', {
ensureAssetUrl, ensureAssetUrl,
getAsset: getDocumentAsset, getAsset: getDocumentAsset,
}); });
if (!url && typeof ensureAssetUrl === 'function') { if (!url && typeof ensureAssetUrl === 'function') {
await ensureAssetUrl(singleDoc.id, asset, { force: false }); const ensured = await ensureAssetUrl(singleDoc.id, asset, { force: false });
url = resolveDocumentAssetUrl(singleDoc, 'ocr-text', { if (ensured) {
entry = ensured;
}
url = entry?.url ||
resolveDocumentAssetUrl(singleDoc, 'ocr-text', {
ensureAssetUrl, ensureAssetUrl,
getAsset: getDocumentAsset, getAsset: getDocumentAsset,
}); });
+1
View File
@@ -1541,6 +1541,7 @@ button.icon-button.ghost:hover:not([disabled]) {
.detail-ocr__frame { .detail-ocr__frame {
width: 100%; width: 100%;
min-height: 360px;
height: 60vh; height: 60vh;
border: none; border: none;
background: var(--surface-subtle); background: var(--surface-subtle);