Skip to content

Commit 8bb3042

Browse files
authored
Fix typo (#111)
1 parent ede0e8c commit 8bb3042

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Elastic.Ingest.Elasticsearch/Semantic/SemanticIndexChannel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class SemanticIndexChannelOptions<TDocument>(ITransport transport) : Cata
4040
public Func<string, string, string>? GetMapping { get; init; }
4141

4242
/// A function that returns the mapping settings for <typeparamref name="TDocument"/> given the inference id and search inference id.
43-
public Func<string, string, string>? GetMappingSetting { get; init; }
43+
public Func<string, string, string>? GetMappingSettings { get; init; }
4444

4545
/// The timeout for creating the inference id.
4646
/// <para>If not specified, the default timeout is used.</para>
@@ -81,7 +81,7 @@ public SemanticIndexChannel(SemanticIndexChannelOptions<TDocument> options, ICol
8181
protected override string? GetMappings() => Options.GetMapping?.Invoke(InferenceId, SearchInferenceId);
8282

8383
/// <inheritdoc cref="ElasticsearchChannelBase{TEvent,TChannelOptions}.GetMappingSettings"/>
84-
protected override string? GetMappingSettings() => Options.GetMappingSetting?.Invoke(InferenceId, SearchInferenceId);
84+
protected override string? GetMappingSettings() => Options.GetMappingSettings?.Invoke(InferenceId, SearchInferenceId);
8585

8686
/// <inheritdoc cref="ElasticsearchChannelBase{TEvent,TChannelOptions}.BootstrapElasticsearch"/>
8787
public override bool BootstrapElasticsearch(BootstrapMethod bootstrapMethod, string? ilmPolicy = null)

tests/Elastic.Ingest.Elasticsearch.IntegrationTests/SemanticIndexIngestionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task EnsureDocumentsEndUpInSemanticIndex()
6363
}
6464
""",
6565

66-
GetMappingSetting = (inferenceId, searchInferenceId) =>
66+
GetMappingSettings = (inferenceId, searchInferenceId) =>
6767
"""
6868
{
6969
"analysis": {

0 commit comments

Comments
 (0)