Skip to content

Commit 5a9c331

Browse files
authored
v2.21.0 Documentation fixes (#1158)
1 parent 46e32bb commit 5a9c331

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

Diff for: src/MongoDB.Bson/Serialization/Serializers/DowncastingSerializer.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public DowncastingSerializer(IBsonSerializer<TDerived> derivedSerializer)
8383
/// <inheritdoc/>
8484
public Type BaseType => typeof(TBase);
8585

86-
/// <inheritdoc/>
86+
/// <summary>
87+
/// The serializer for the derived type.
88+
/// </summary>
8789
public IBsonSerializer<TDerived> DerivedSerializer => _derivedSerializer;
8890

8991
IBsonSerializer IDowncastingSerializer.DerivedSerializer => _derivedSerializer;

Diff for: src/MongoDB.Driver/Search/IMongoSearchIndexManager.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface IMongoSearchIndexManager
4141
/// <param name="models">The models defining each of the indexes.</param>
4242
/// <param name="cancellationToken">The cancellation token.</param>
4343
/// <returns>
44-
/// A task whose result is an <see cref="IEnumerable{String}" /> of the names of the indexes that were created.
44+
/// A Task whose result is an <see cref="IEnumerable{String}" /> of the names of the indexes that were created.
4545
/// </returns>
4646
Task<IEnumerable<string>> CreateManyAsync(IEnumerable<CreateSearchIndexModel> models, CancellationToken cancellationToken = default);
4747

@@ -83,7 +83,7 @@ public interface IMongoSearchIndexManager
8383
/// <param name="model">The model defining the index.</param>
8484
/// <param name="cancellationToken">The cancellation token.</param>
8585
/// <returns>
86-
/// A task whose result is the name of the index that was created.
86+
/// A Task whose result is the name of the index that was created.
8787
/// </returns>
8888
Task<string> CreateOneAsync(CreateSearchIndexModel model, CancellationToken cancellationToken = default);
8989

@@ -99,7 +99,7 @@ public interface IMongoSearchIndexManager
9999
/// </summary>
100100
/// <param name="name">The index name.</param>
101101
/// <param name="cancellationToken">The cancellation token.</param>
102-
/// <returns>A task.</returns>
102+
/// <returns>A Task.</returns>
103103
Task DropOneAsync(string name, CancellationToken cancellationToken = default);
104104

105105
/// <summary>
@@ -138,6 +138,7 @@ public interface IMongoSearchIndexManager
138138
/// <param name="name">Name of the index.</param>
139139
/// <param name="definition">The definition.</param>
140140
/// <param name="cancellationToken">The cancellation token.</param>
141+
/// <returns>A Task.</returns>
141142
Task UpdateAsync(string name, BsonDocument definition, CancellationToken cancellationToken = default);
142143
}
143144
}

Diff for: src/MongoDB.Driver/Search/SearchDefinitionBuilder.cs

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public CompoundSearchDefinitionBuilder<TDocument> Compound(SearchScoreDefinition
7777
/// the specified query <paramref name="operator"/> is satisfied from a single element
7878
/// of an array of embedded documents specified by <paramref name="path"/>.
7979
/// </summary>
80+
/// <typeparam name="TField">The type of the field.</typeparam>
8081
/// <param name="path">The indexed field to search.</param>
8182
/// <param name="operator">The operator.</param>
8283
/// <param name="score">The score modifier.</param>

Diff for: src/MongoDB.Driver/Search/SearchOptions.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ namespace MongoDB.Driver.Search
1818
/// <summary>
1919
/// Options for search.
2020
/// </summary>
21-
public sealed class SearchOptions<TResult>
21+
/// <typeparam name="TDocument">The type of the document.</typeparam>
22+
public sealed class SearchOptions<TDocument>
2223
{
2324
/// <summary>
2425
/// Gets or sets the options for counting the search results.
@@ -28,7 +29,7 @@ public sealed class SearchOptions<TResult>
2829
/// <summary>
2930
/// Gets or sets the options for highlighting.
3031
/// </summary>
31-
public SearchHighlightOptions<TResult> Highlight { get; set; }
32+
public SearchHighlightOptions<TDocument> Highlight { get; set; }
3233

3334
/// <summary>
3435
/// Gets or sets the index name.
@@ -50,7 +51,7 @@ public sealed class SearchOptions<TResult>
5051
/// <summary>
5152
/// Gets or sets the sort specification.
5253
/// </summary>
53-
public SortDefinition<TResult> Sort { get; set; }
54+
public SortDefinition<TDocument> Sort { get; set; }
5455

5556
/// <summary>
5657
/// Gets or sets the options for tracking search terms.

0 commit comments

Comments
 (0)