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:
@@ -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}}]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user