* feat: log store

* fix: full text search match query

* perf: mongo schema import, Avoid duplicate import
This commit is contained in:
Archer
2024-07-05 17:37:42 +08:00
committed by GitHub
parent 88d10451c9
commit 5605f1a892
39 changed files with 252 additions and 201 deletions

View File

@@ -212,7 +212,7 @@ export async function searchDatasetData(props: SearchDatasetDataProps) {
{
$match: {
$expr: { $eq: ['$_id', '$$collectionId'] },
forbid: { $eq: false } // 直接在lookup阶段过滤
forbid: { $eq: true } // 匹配被禁用的数据
}
},
{
@@ -226,7 +226,7 @@ export async function searchDatasetData(props: SearchDatasetDataProps) {
},
{
$match: {
collection: { $ne: [] }
collection: { $eq: [] } // 没有 forbid=true 的数据
}
},
{