From 6856f5e0146101057df31ef015b4d71cec4752e4 Mon Sep 17 00:00:00 2001 From: Dmitry Rybakov Date: Tue, 6 May 2025 11:43:26 +0200 Subject: [PATCH] RUBY-3395 Add missing doc comments for indexes --- lib/mongo/search_index/view.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/mongo/search_index/view.rb b/lib/mongo/search_index/view.rb index 39055f4774..94c4c9ae25 100644 --- a/lib/mongo/search_index/view.rb +++ b/lib/mongo/search_index/view.rb @@ -46,6 +46,8 @@ def initialize(collection, options = {}) # # @param [ Hash ] definition The definition of the search index. # @param [ nil | String ] name The name to give the new search index. + # @param [ String ] type The type of the search index. Possible values + # are 'search' and 'vectorSearch'. The default is 'search'. # # @return [ String ] the name of the new search index. def create_one(definition, name: nil, type: 'search') @@ -56,7 +58,8 @@ def create_one(definition, name: nil, type: 'search') # # @param [ Array ] indexes The description of the indexes to # create. Each element of the list must be a hash with a definition - # key, and an optional name key. + # key, an optional name key, and an optional type key. The type key + # must be one of 'search' or 'vectorSearch'. The default is 'search'. # # @return [ Array ] the names of the new search indexes. def create_many(indexes)