Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions internal/mongodbclient/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading