From 5a9c3311e158910b88195f290e6d4b1b2715d2b2 Mon Sep 17 00:00:00 2001 From: BorisDog Date: Wed, 9 Aug 2023 17:50:09 -0700 Subject: [PATCH] v2.21.0 Documentation fixes (#1158) --- .../Serialization/Serializers/DowncastingSerializer.cs | 4 +++- src/MongoDB.Driver/Search/IMongoSearchIndexManager.cs | 7 ++++--- src/MongoDB.Driver/Search/SearchDefinitionBuilder.cs | 1 + src/MongoDB.Driver/Search/SearchOptions.cs | 7 ++++--- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/MongoDB.Bson/Serialization/Serializers/DowncastingSerializer.cs b/src/MongoDB.Bson/Serialization/Serializers/DowncastingSerializer.cs index e611caaf597..acfa77ed7d7 100644 --- a/src/MongoDB.Bson/Serialization/Serializers/DowncastingSerializer.cs +++ b/src/MongoDB.Bson/Serialization/Serializers/DowncastingSerializer.cs @@ -83,7 +83,9 @@ public DowncastingSerializer(IBsonSerializer derivedSerializer) /// public Type BaseType => typeof(TBase); - /// + /// + /// The serializer for the derived type. + /// public IBsonSerializer DerivedSerializer => _derivedSerializer; IBsonSerializer IDowncastingSerializer.DerivedSerializer => _derivedSerializer; diff --git a/src/MongoDB.Driver/Search/IMongoSearchIndexManager.cs b/src/MongoDB.Driver/Search/IMongoSearchIndexManager.cs index c4619027f22..b0741339fa7 100644 --- a/src/MongoDB.Driver/Search/IMongoSearchIndexManager.cs +++ b/src/MongoDB.Driver/Search/IMongoSearchIndexManager.cs @@ -41,7 +41,7 @@ public interface IMongoSearchIndexManager /// The models defining each of the indexes. /// The cancellation token. /// - /// A task whose result is an of the names of the indexes that were created. + /// A Task whose result is an of the names of the indexes that were created. /// Task> CreateManyAsync(IEnumerable models, CancellationToken cancellationToken = default); @@ -83,7 +83,7 @@ public interface IMongoSearchIndexManager /// The model defining the index. /// The cancellation token. /// - /// A task whose result is the name of the index that was created. + /// A Task whose result is the name of the index that was created. /// Task CreateOneAsync(CreateSearchIndexModel model, CancellationToken cancellationToken = default); @@ -99,7 +99,7 @@ public interface IMongoSearchIndexManager /// /// The index name. /// The cancellation token. - /// A task. + /// A Task. Task DropOneAsync(string name, CancellationToken cancellationToken = default); /// @@ -138,6 +138,7 @@ public interface IMongoSearchIndexManager /// Name of the index. /// The definition. /// The cancellation token. + /// A Task. Task UpdateAsync(string name, BsonDocument definition, CancellationToken cancellationToken = default); } } diff --git a/src/MongoDB.Driver/Search/SearchDefinitionBuilder.cs b/src/MongoDB.Driver/Search/SearchDefinitionBuilder.cs index d652068ce75..01a79d13b82 100644 --- a/src/MongoDB.Driver/Search/SearchDefinitionBuilder.cs +++ b/src/MongoDB.Driver/Search/SearchDefinitionBuilder.cs @@ -77,6 +77,7 @@ public sealed class SearchDefinitionBuilder /// the specified query is satisfied from a single element /// of an array of embedded documents specified by . /// + /// The type of the field. /// The indexed field to search. /// The operator. /// The score modifier. diff --git a/src/MongoDB.Driver/Search/SearchOptions.cs b/src/MongoDB.Driver/Search/SearchOptions.cs index deea0780bdd..77f625706cf 100644 --- a/src/MongoDB.Driver/Search/SearchOptions.cs +++ b/src/MongoDB.Driver/Search/SearchOptions.cs @@ -18,7 +18,8 @@ namespace MongoDB.Driver.Search /// /// Options for search. /// - public sealed class SearchOptions + /// The type of the document. + public sealed class SearchOptions { /// /// Gets or sets the options for counting the search results. @@ -28,7 +29,7 @@ public sealed class SearchOptions /// /// Gets or sets the options for highlighting. /// - public SearchHighlightOptions Highlight { get; set; } + public SearchHighlightOptions Highlight { get; set; } /// /// Gets or sets the index name. @@ -50,7 +51,7 @@ public sealed class SearchOptions /// /// Gets or sets the sort specification. /// - public SortDefinition Sort { get; set; } + public SortDefinition Sort { get; set; } /// /// Gets or sets the options for tracking search terms.