fix: Qdrant collection name + PipelineProgress accumulation

- scan.rs: rule1 collection 'momentry_public_rule1_v2' → 'momentry_rule1'
- progress.rs: publish_pipeline_progress now reads existing progress and merges stages
This commit is contained in:
Accusys
2026-07-02 13:44:45 +08:00
parent 64f29d614b
commit 6507766ea2
2 changed files with 32 additions and 3 deletions

View File

@@ -801,7 +801,11 @@ async fn get_file_stats(
// Text chunk stats (rule1 collection)
let schema = std::env::var("DATABASE_SCHEMA").unwrap_or_else(|_| "dev".to_string());
let rule1_collection = format!("momentry_{}_rule1_v2", schema);
let rule1_collection = if schema == "public" {
"momentry_rule1".to_string()
} else {
format!("momentry_{}_rule1_v2", schema)
};
let text_filter = json!({
"must": [{"key": "file_uuid", "match": {"value": file_uuid}}]
});