in src/Elastic.Ingest.Elasticsearch/Indices/IndexChannel.cs [26:40]
public IndexChannel(IndexChannelOptions<TEvent> options, ICollection<IChannelCallbacks<TEvent, BulkResponse>>? callbackListeners) : base(options, callbackListeners)
{
_url = base.BulkPathAndQuery;
// When the configured index format represents a fixed index name, we can optimize by providing a URL with the target index specified.
// We can later avoid the overhead of calculating and adding the index name to the operation headers.
if (string.Format(Options.IndexFormat, DateTimeOffset.Now).Equals(Options.IndexFormat, StringComparison.Ordinal))
{
_url = $"{Options.IndexFormat}/{base.BulkPathAndQuery}";
_skipIndexNameOnOperations = true;
}
TemplateName = string.Format(Options.IndexFormat, "template");
TemplateWildcard = string.Format(Options.IndexFormat, "*");
}