'How to push data from Spring Boot to Elastic using Elasticsearch Java API Client?

newbie here!

I see a lot of examples to push data from Java service to Elastic with Java high level REST client, but now that it's deprecated - How do I use Elasticsearch Java API Client to push data?

Here I can see only example of creating index and searching for data: https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/7.17/api-conventions.html

If you can point me in the right direction or a github repo, that would mean a lot!

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source