Skip to content

Commit b8fbd6d

Browse files
committed
Touch up
1 parent 9e478f4 commit b8fbd6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Elastic.Markdown/Exporters/Elasticsearch/ElasticsearchMarkdownExporter.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,22 @@ public async ValueTask StartAsync(Cancel ctx = default)
119119
_logger.LogInformation("Using {IndexStrategy} to sync lexical index to semantic index", _indexStrategy.ToStringFast(true));
120120
}
121121

122-
private async Task PublishSynonymsAsync(string name, CancellationToken ctx)
122+
private async Task PublishSynonymsAsync(string setName, CancellationToken ctx)
123123
{
124-
_logger.LogInformation("Publishing synonym set '{Name}' to Elasticsearch", name);
124+
_logger.LogInformation("Publishing synonym set '{SetName}' to Elasticsearch", setName);
125125

126126
var requestBody = new SynonymSetRequest { Synonyms = _synonyms.ToArray() };
127127
var json = JsonSerializer.Serialize(requestBody, SynonymSerializerContext.Default.SynonymSetRequest);
128128

129-
var response = await _transport.PutAsync<StringResponse>($"_synonyms/{name}", PostData.String(json), ctx);
129+
var response = await _transport.PutAsync<StringResponse>($"_synonyms/{setName}", PostData.String(json), ctx);
130130

131131
if (!response.ApiCallDetails.HasSuccessfulStatusCode)
132132
{
133-
_collector.EmitGlobalError($"Failed to publish synonym set '{name}'. Reason: {response.ApiCallDetails.OriginalException?.Message ?? response.ToString()}");
133+
_collector.EmitGlobalError($"Failed to publish synonym set '{setName}'. Reason: {response.ApiCallDetails.OriginalException?.Message ?? response.ToString()}");
134134
}
135135
else
136136
{
137-
_logger.LogInformation("Successfully published synonym set '{Name}'.", name);
137+
_logger.LogInformation("Successfully published synonym set '{SetName}'.", setName);
138138
}
139139
}
140140

0 commit comments

Comments
 (0)