Elasticsearch is designed to make a developer's job simple when it comes to search and analytics. It is as simple as entering a single command to get started with Elasticsearch and indexing your first document with absolutely zero configuration.
Elasticsearch provides a REST API to perform create
, update
, retrieve
, and delete
operations. Let's take a look at how to perform the basic CRUD operations with Elasticsearch.
To execute the queries, you can either use the cURL utility or the Sense interface. If you wish to use cURL, verify that you have cURL installed by executing the following cURL command:
$ curl --version
It should display the following output:
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS...