Skip to content

Commit e36ca41

Browse files
Added SetType to SearchIndexesOptions
1 parent 507a0fb commit e36ca41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mongo/options/searchindexoptions.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ func (sio *SearchIndexesOptions) SetName(name string) *SearchIndexesOptions {
2323
return sio
2424
}
2525

26+
// SetType sets the value for the Type field.
27+
func (sio *SearchIndexesOptions) SetType(ty string) *SearchIndexesOptions {
28+
sio.Type = &ty
29+
return sio
30+
}
31+
2632
// CreateSearchIndexesOptions represents options that can be used to configure a SearchIndexView.CreateOne or
2733
// SearchIndexView.CreateMany operation.
2834
type CreateSearchIndexesOptions struct {

0 commit comments

Comments
 (0)