Search code examples
c#elasticsearchindexingnest

ElasticSearch 7.x NEST client compatibility with ES 6.x


We have some code that will shortly need to query both ElasticSearch 6.x and 7.x indexes. We are currently using NEST to talk to our ES instances, however from looking on the web it seems that the v6 NEST client does not work when talking to ES 7.x. Obvious answer is to upgrade to v7 of NEST, but I can't find any information on wether the v7 NEST client is backwards compatible.

If we upgrade our NEST client to the version that works with ElasticSearch 7.x, will this client also be able to talk to instances of ElasticSearch 6.x?


Solution

  • You can find compatibility matrix of the client here. It’s likely there are some breaking changes and you won’t be able to work with elasticsearch 6.x when using NEST 7.x.

    If you want to work with elasticsearch 7.x you need to install NEST in version 7.0.0beta1.

    enter image description here