feat: trace_id i64→i32 fix, OCR search filter, Rule1 OCR trigger
- Fix trace_id SQL type mismatch: i64 → i32 in profile.rs structs and queries - Add /ocr /asr /asrx search filter suffix to keyword/semantic/smart search - Fix fetch_ocr_texts to handle both OCR data formats (string array + object array) - Add has_ocr trigger for Rule1 chunk ingestion in job_worker.rs - Add search_bm25 chunk_type filter parameter - Fix single-frame video clip duration (0-frame → 1-frame minimum) - Re-run Rule1 for 14 files with stuck OCR in pre_chunks
This commit is contained in:
@@ -97,6 +97,12 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
|
||||
let api_state = super::middleware::ApiState { db: db.clone() };
|
||||
|
||||
let qdrant = std::sync::Arc::new(QdrantDb::new());
|
||||
|
||||
// Ensure trash collection exists for trace hard-delete undo
|
||||
if let Err(e) = qdrant.ensure_collection("_faces_trash", 512).await {
|
||||
tracing::warn!("[Server] Failed to ensure _faces_trash collection: {}", e);
|
||||
}
|
||||
|
||||
let state = AppState {
|
||||
db,
|
||||
qdrant,
|
||||
|
||||
Reference in New Issue
Block a user