core: improve index for document model

This commit is contained in:
undefined committed 2023-11-04 17:51:03 +08:00
1 parent b1e9700983
commit a7eccb65b3
1 file changed
+1 -1
+1 -1
View File
@@ -437,7 +437,7 @@ export async function apply(ctx: Context) {
{ key: { domainId: 1, docType: 1, owner: 1, docId: -1 }, name: 'owner' },
// For problem
{ key: { domainId: 1, docType: 1, search: 'text', title: 'text' }, name: 'search', sparse: true },
{ key: { domainId: 1, docType: 1, sort: 1 }, name: 'sort', sparse: true },
{ key: { domainId: 1, docType: 1, sort: 1, docId: 1 }, name: 'sort', sparse: true },
{ key: { domainId: 1, docType: 1, tag: 1, sort: 1 }, name: 'tag', sparse: true },
{ key: { domainId: 1, docType: 1, hidden: 1, tag: 1, sort: 1 }, name: 'hidden', sparse: true },
// For problem solution