From 0fafe48485cf93d87bac9b823e6fcd711d61f053 Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Thu, 13 Feb 2025 12:49:48 +0000 Subject: [PATCH] CLOUDP-300554: fix lastversion fields --- internal/mongodbclient/collection.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/mongodbclient/collection.go b/internal/mongodbclient/collection.go index 8a870b49d0..bfbe0224f6 100644 --- a/internal/mongodbclient/collection.go +++ b/internal/mongodbclient/collection.go @@ -42,15 +42,15 @@ func (c *collection) Aggregate(ctx context.Context, pipeline any) (*mongo.Cursor } type SearchIndexDefinition struct { - IndexID *string `bson:"id,omitempty"` - Database *string - CollectionName *string - Name *string `bson:"name,omitempty"` - Type *string `bson:"type,omitempty"` - Status *string `bson:"status,omitempty"` - Queryable *bool `bson:"queryable,omitempty"` - LastDefinition any `bson:"lastDefinition,omitempty"` - LastVersion *int `bson:"lastVersion,omitempty"` + IndexID *string `bson:"id,omitempty"` + Database *string + CollectionName *string + Name *string `bson:"name,omitempty"` + Type *string `bson:"type,omitempty"` + Status *string `bson:"status,omitempty"` + Queryable *bool `bson:"queryable,omitempty"` + LatestDefinition any `bson:"latestDefinition,omitempty"` + LatestVersion *int `bson:"latestVersion,omitempty"` } func (c *collection) CreateSearchIndex(ctx context.Context, name, indexType string, definition any) (*SearchIndexDefinition, error) {