Skip to content

9.0 nuget version with 8.15.4 ES instance - not working Indices.Exists method #8501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kplazinski opened this issue Apr 24, 2025 · 1 comment
Labels
9.x Relates to a 9.x client version Category: Question

Comments

@kplazinski
Copy link

kplazinski commented Apr 24, 2025

Hello, is new version of nuget should work with 8.15.4 ES instance?
It seems that there is some problem with calling Exists method on the index - I always got the error 400 (doesn't matter if index exists or not), so for example this code always show this error:

var settings = new ElasticsearchClientSettings(new Uri("http://localhost:9200"));
var client = new ElasticsearchClient(settings);
var output = client.Indices.Exists("anything");

[EDIT]
as a workaround I see that when sending this header it's working fine:

var nvc = new System.Collections.Specialized.NameValueCollection
{
   { "Accept", "application/vnd.elasticsearch+json;compatible-with=8" }
};
GlobalHeaders(nvc);
@flobernd flobernd added Category: Question 9.x Relates to a 9.x client version labels Apr 28, 2025
@flobernd
Copy link
Member

Hi @kplazinski, the 9.x versions of the client are indeed not meant to be used with 8.x clusters.

The workaround should technically work (for now), but please note that we don't officially support this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.x Relates to a 9.x client version Category: Question
Projects
None yet
Development

No branches or pull requests

2 participants