ElasticSearch new version of JavaClient using the introduction

The java client used by ElasticSearch before version 7.17 was the Java REST Client, but since version 7.17, the Java REST Client has been officially marked as deprecated and the new version of the Java Client is recommended. This article introduces the new version of the ElasticSearch Java Client’s basic usage. The specific code reference Example project. I. Overview Elasticsearch 7.17 version of the new Java API Client has the following advantages.