Until this chapter, we used HTTP clients, such as Kibana or Postman, to talk to Elasticsearch. In this section, we will discuss how to integrate Elasticsearch into your application.
You can talk to Elasticsearch in two ways:
- Rest API: You can use any HTTP clients, such as Apache HTTP client or Jersey to interact with the REST API. If your application is Java based, you should consider using the Elasticsearch Java REST Client. We will discuss this in more detail in the Java REST Client section.
- Native Client: Elasticsearch has a native client for almost all major languages, such as Java, .NET, PHP, and so on. There are also many community-supported clients. For more details about the officially supported clients, please visit https://www.elastic.co/guide/en/elasticsearch/client/index.html.
For Java, along with the REST client, Elasticsearch...