Switching from the Java High Level Rest Client to the new Java API Client
Blog post from Elastic
David Pilato's blog post discusses the transition from the deprecated Java High Level Rest Client (HLRC) to the new Java API Client for Elasticsearch. He shares his experience in updating a GitHub repository with working examples to assist the developer community in making this switch. The article details the steps necessary to upgrade, highlighting changes in creating clients, executing searches, using lambda expressions, and handling JSON serialization with the new ElasticsearchTransport class. Pilato emphasizes the benefits of the new client, such as improved readability and efficiency, particularly through the use of lambdas and the BulkIngester helper for batch operations. The new API allows for the direct use of Java Beans, streamlining the process of coding and data management, and enhancing the overall developer experience.