[GeoNetwork-devel] Elasticsearch upgrade version

Hi Jose and Francois,

I see in the last PSC meeting report that you plan to work on “for ElasticClient client code upgrade to support latest ElasticClient versions.” ?

What is the status of this? We have discussed that in Bolsena but without any real conclusion.
It’s a big move/engagement to update Elasticsearch to version 8 if it’s what you mean.

Could please develop this statement a bit.
Thanks a lot !

Cheers

···

This is Florent Gravin's card. Their email is florent.gravin@anonymised.com

Hi Florent

Geonetwork is using the Elasticsearch high level rest client, this component is deprecated and the code should be updated to use Elasticsearch Java API Client.

Checking the documentation, seems it’s possible to use Elasticsearch high level rest client still in Elasticsearch 8, using the compatibility mode: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html

So this can be a short-term solution. In any case, would be good to work to update the code to use Elasticsearch Java API Client. And for sure, should be tested GeoNetwork with Elasticsearch 8 to make sure no additional changes are required.

Regards,
Jose García

Jose Garcia

E-mail: jose.garcia@anonymised.com

https://www.geocat.net

Veenderweg 13

6721 WD Bennekom

The Netherlands

Tel: +31318416664

---- On Wed, 11 Oct 2023 18:05:35 +0200 Florent Gravin florent.gravin@anonymised.com wrote —

Hi Jose and Francois,

I see in the last PSC meeting report that you plan to work on “for ElasticClient client code upgrade to support latest ElasticClient versions.” ?

What is the status of this? We have discussed that in Bolsena but without any real conclusion.

It’s a big move/engagement to update Elasticsearch to version 8 if it’s what you mean.

Could please develop this statement a bit.

Thanks a lot !

Cheers

Hi Jose, thanks for the update.

So what I’ve read is that 7.16.x is eol and 7.17.x is eol when ES 9 comes out.
GN is actually version 7.15.1

The Elasticsearch high level rest client is deprecated from ES 7.15.0, but still working for versions 7.1+
What version of ES do you plan to move to ? 7.17+ or 8.x ?

Thanks for the information !
Best

···

This is Florent Gravin's card. Their email is florent.gravin@anonymised.com

Hi Florent

There is a PR https://github.com/geonetwork/core-geonetwork/pull/7368 to update to version 7.17.13, but haven’t got time to try it.

Regards,
Jose García

Jose Garcia

E-mail: jose.garcia@anonymised.com

https://www.geocat.net

Veenderweg 13

6721 WD Bennekom

The Netherlands

Tel: +31318416664

---- On Fri, 13 Oct 2023 14:33:57 +0200 Florent Gravin florent.gravin@anonymised.com wrote —

Hi Jose, thanks for the update.

So what I’ve read is that 7.16.x is eol and 7.17.x is eol when ES 9 comes out.

GN is actually version 7.15.1

The Elasticsearch high level rest client is deprecated from ES 7.15.0, but still working for versions 7.1+

What version of ES do you plan to move to ? 7.17+ or 8.x ?

Thanks for the information !

Best

On Thu, Oct 12, 2023 at 9:43 AM Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Florent

Geonetwork is using the Elasticsearch high level rest client, this component is deprecated and the code should be updated to use Elasticsearch Java API Client.

Checking the documentation, seems it’s possible to use Elasticsearch high level rest client still in Elasticsearch 8, using the compatibility mode: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html

So this can be a short-term solution. In any case, would be good to work to update the code to use Elasticsearch Java API Client. And for sure, should be tested GeoNetwork with Elasticsearch 8 to make sure no additional changes are required.

Regards,
Jose García

Jose Garcia

E-mail: jose.garcia@anonymised.com

https://www.geocat.net

Veenderweg 13

6721 WD Bennekom

The Netherlands

Tel: +31318416664

---- On Wed, 11 Oct 2023 18:05:35 +0200 Florent Gravin <florent.gravin@anonymised.com> wrote —

Hi Jose and Francois,

I see in the last PSC meeting report that you plan to work on “for ElasticClient client code upgrade to support latest ElasticClient versions.” ?

What is the status of this? We have discussed that in Bolsena but without any real conclusion.

It’s a big move/engagement to update Elasticsearch to version 8 if it’s what you mean.

Could please develop this statement a bit.

Thanks a lot !

Cheers