Skip to content

Commit ad414a0

Browse files
committed
Update comment
Update generic type parameter to TDocument (cherry picked from commit 4a12b53)
1 parent 89a91b2 commit ad414a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Nest/Document/Single/Index/ElasticClient-Index.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public partial interface IElasticClient
1111
/// <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html">
1212
/// https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html</a>
1313
/// </summary>
14-
/// <typeparam name="TDocument">The document type used to infer the default index, type and id</typeparam>
14+
/// <typeparam name="TDocument">The document type used to infer the default index and id</typeparam>
1515
/// <param name="document">
1616
/// The document to be indexed. Id will be inferred from (in order):
1717
/// <para>1. Id property set up on <see cref="ConnectionSettings" /> for <typeparamref name="TDocument" /></para>
@@ -21,12 +21,11 @@ public partial interface IElasticClient
2121
/// </para>
2222
/// <para>3. A property named Id on <typeparamref name="TDocument" /></para>
2323
/// </param>
24-
/// <param name="selector">Optionally further describe the index operation i.e override type, index, id</param>
2524
IndexResponse IndexDocument<TDocument>(TDocument document) where TDocument : class;
2625

2726
/// <inheritdoc cref="IElasticClient.IndexDocument{TDocument}" />
28-
Task<IndexResponse> IndexDocumentAsync<T>(T document, CancellationToken ct = default)
29-
where T : class;
27+
Task<IndexResponse> IndexDocumentAsync<TDocument>(TDocument document, CancellationToken ct = default)
28+
where TDocument : class;
3029
}
3130

3231
public partial class ElasticClient

0 commit comments

Comments
 (0)