Would you like to learn how to create an Index on Elasticsearch? In this tutorial, we are going to show you how to create a new Index on the ElasticSearch server on a computer running Ubuntu Linux.
• Ubuntu 18
• Ubuntu 19
• ElasticSearch 7.6.2
In our example, The ElastiSearch server IP address is 192.168.100.7.
Important! The Elasticsearch uses the word Index instead of the word Table.
ElasticSearch Related Tutorial:
On this page, we offer quick access to a list of tutorials related to ElasticSearch installation.
Tutorial ElasticSearch – Creating an Index
Install the required packages.
Test your communication with the ElasticSearch server.
Here is the command output:
Create an ElasticSearch index named ACCOUNTS.
Here is the command output:
Add the following fields:
• Username – Text
• Name – Text
• Email – Text
• Age – Numeric
Here is the command output:
Verify the mapping configuration.
Here is the command output:
Congratulations! You have created a new Index on the ElasticSearch server.
Tutorial ElasticSearch – Adding information to an Index
Add an entry to the ElasticSearch Index.
Here is the command output:
Add another entry to the ElasticSearch Index.
List all entries on the Index.
Here is the command output:
List all entries on the Index containing the word Bruno.
Here is the command output:
List all entries on the Index with an age of less than 40.
Here is the command output:
Congratulations! You are able to add entries to an ElasticSearch Index.