Check out example codes for "elasticsearch java client dependency". It will help you in understanding the concepts better.

Code Example 1

<dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
</dependency>

Learn ReactJs, React Native from akashmittal.com