You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Search SQL now filters ppt_pages by ocr_status='done' so invalid/dedup
pages don't appear as "OCR命中" but then vanish in the PPT viewer
- Pagination: 50 results per page with "加载更多" load-more button
- Search domain checkboxes (摘要/标题/转录/OCR) in course filter dropdown
let users narrow which fields to search
functionaddCase(when,then){caseParts.push("WHEN "+when+" THEN '"+then+"'");caseParams.push(q);}
196
+
if(matchSummary)addCase("l.summary LIKE '%' || ? || '%'","summary");
197
+
if(matchSubtitle)addCase("l.sub_title LIKE '%' || ? || '%'","sub_title");
198
+
if(matchTranscript)addCase("l.transcript LIKE '%' || ? || '%'","transcript");
199
+
if(matchOcr)addCase("EXISTS(SELECT 1 FROM ppt_pages pp2 WHERE pp2.sub_id = l.sub_id AND pp2.ocr_status = 'done' AND pp2.text LIKE '%' || ? || '%')","ocr");
200
+
201
+
// ppt_text subquery (for OCR snippet, only when OCR domain active)
202
+
varpptSql=matchOcr
203
+
? "(SELECT pp.text FROM ppt_pages pp WHERE pp.sub_id = l.sub_id AND pp.ocr_status = 'done' AND pp.text LIKE '%' || ? || '%' LIMIT 1)"
0 commit comments