Skip to content

Comments

Upgrade to Elastic.Clients.Elasticsearch#84

Draft
niemyjski wants to merge 29 commits intomainfrom
feature/elastic-client
Draft

Upgrade to Elastic.Clients.Elasticsearch#84
niemyjski wants to merge 29 commits intomainfrom
feature/elastic-client

Conversation

@niemyjski
Copy link
Member

@niemyjski niemyjski commented Sep 4, 2024

This pr drops support the 7.x Nest client (unsupported EOY see elastic/elasticsearch-net#8014 (comment)) and upgrading to the new Elastic.Clients.Elasticsearch client.

Blocking Issues (WIP)

{
string elasticsearchUrl = Environment.GetEnvironmentVariable("ELASTICSEARCH_URL") ?? "http://localhost:9200";
var settings = new ConnectionSettings(new Uri(elasticsearchUrl));
var settings = new ElasticsearchClientSettings(new Uri(elasticsearchUrl));
var response = elasticResponse as IResponse;
if (includeDebugInformation && response?.DebugInformation != null)
sb.AppendLine(response.DebugInformation);
if (includeDebugInformation && elasticResponse?.DebugInformation != null)

if (depth == 0)
resolvedFieldName += _inferrer.PropertyName(fieldMapping.Name);
resolvedFieldName += _inferrer.PropertyName(name);
resolvedFieldName += _inferrer.PropertyName(name);
else
resolvedFieldName += "." + _inferrer.PropertyName(fieldMapping.Name);
resolvedFieldName += "." + _inferrer.PropertyName(name);
Updates the Elasticsearch client library to version 9.2.2.

This change addresses compatibility issues and incorporates the latest
features and fixes available in the updated client.
Updates aggregation usages with new client changes.
var end = context.GetDate("EndDate");
bool isValidRange = start.HasValue && start.Value > DateTime.MinValue && end.HasValue && end.Value < DateTime.MaxValue && start.Value <= end.Value;
var bounds = isValidRange ? new ExtendedBounds<DateMath> { Minimum = start.Value, Maximum = end.Value } : null;
var bounds = isValidRange ? new ExtendedBounds<DateTime> { Min = start.Value, Max = end.Value } : null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant