From ac8f47372ab23f5f6e3496e7e31ae790e261a065 Mon Sep 17 00:00:00 2001 From: Dianna Date: Sun, 3 Nov 2024 03:04:35 +0000 Subject: [PATCH] retain computed fields from VolumeMetadata, for now --- Sources/UnidocQueries/Volumes/Unidoc.VertexQuery.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/UnidocQueries/Volumes/Unidoc.VertexQuery.swift b/Sources/UnidocQueries/Volumes/Unidoc.VertexQuery.swift index c958087f..d43d2487 100644 --- a/Sources/UnidocQueries/Volumes/Unidoc.VertexQuery.swift +++ b/Sources/UnidocQueries/Volumes/Unidoc.VertexQuery.swift @@ -278,8 +278,10 @@ extension Unidoc.VertexQuery:Mongo.PipelineQuery $0[stage: .project, using: Output.CodingKey.self] { $0[.matches] = true - $0[.principalVolume] = Unidoc.VolumeMetadata.StoredFields.init() - $0[.canonicalVolume] = Unidoc.VolumeMetadata.StoredFields.init() + // Right now, we still need these in order to fully utilize the index + // on the vertex collection. + $0[.principalVolume] = true // Unidoc.VolumeMetadata.StoredFields.init() + $0[.canonicalVolume] = true // Unidoc.VolumeMetadata.StoredFields.init() } } }