Tutorial to Elasticsearch indexation

Installation requirements

Welcome to the Elasticsearch indexation Tutorial!

Before running the notebook, you will need to have a running local instance of Elasticsearch

ES8 installation guidelines (Debian package on Linux):

  • Download and install the public signing key:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
  • Installing from the APT repository: You may need to install the apt-transport-https package on Debian before proceeding
sudo apt-get install apt-transport-https

Save the repository definition to /etc/apt/sources.list.d/elastic-8.x.list:

echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list

You can now install the Elasticsearch Debian package with:

echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
(sudo apt-get update && )sudo apt-get install elasticsearch

⚠️ NOTE: We will use a very basic non authenticated setup

nano etc/elasticsearch/elasticsearch.yml
service start elasticsearch
  • Control if Elasticsearch is up and running:

    curl 'localhost:9200/_cat/indices?v'
  • Install the server dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt



We can now open the notebooks

jupyter notebook

Welcome to the Elasticsearch indexation Tutorial!

By the end of this workshop, you will be able to:

  • understand the basics of Elasticsearch
  • get a high level understanding of the architecture of Elasticsearch
  • perform basic CRUD (Create, Read, Update, and Delete) operations with Elasticsearch