What you will learn in this TP
- Search one or several indexes
- Write leaf and compound queries
- Understand the score
All steps and instructions are shown. Recommended for this lab: autonomous
Prerequisites #
Context. A search application must return the most relevant results. You write simple and combined queries and learn to read the score.
Prerequisites: an Elasticsearch cluster and Kibana (lab "Installing Elasticsearch"), Dev Tools · Estimated time: 35 min
You need an Elasticsearch cluster with a Kibana instance connected to it. If that is not yet the case, we invite you to complete the lab on installing Elasticsearch.General #
single-index search
How do you search for a document in the 'mon-premier-index' index?
multi-index search
How do you search for a document in all indices?
The score
What is the '_score' field that appears on my documents?
leaf query clauses #
My first search
Search 'mon-premier-index' for documents whose message contains 'bulk 2'
My second search
Search 'mon-premier-index' for documents whose 'office' is 'rousseltm'
My third search
Run the same search, but on the 'mon-second-index' index instead
compound query clauses #
My combined search
In the previous searches, we only searched on a single field. Search 'mon-second-index' for documents whose user.office is RousselTM and whose user.number is greater than or equal to 2825
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●●○ (4/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Recent discussions about this course
- Elasticsearch : supprimer automatiquement les logs de plus de 30 jours✓ solved · 1 reply(ies)
Ask a question about this lesson →See all discussions about this course
Course Glossary
RBAC (Role-Based Access Control)
An access control method where permissions are assigned to specific roles (e.g., admin, reader) rather than directly to individual users.
Authentication
The process of verifying the identity of a user or system (e.g., login/password, tokens, biometrics).
Authorization
The process that occurs after authentication to determine if the entity has the necessary rights and privileges to access a resource.
API Key
A unique alphanumeric code used to identify, authenticate, and authorize access to an Application Programming Interface (API).
Architecture
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
Repository
A centralized storage location. This can refer to a source code repository (e.g., Git) or an artifact and binary repository (e.g., Harbor, Nexus, Arti...
Elasticsearch
A distributed, RESTful search and analytics engine capable of addressing a growing number of use cases, built on Apache Lucene.
Recommended Articles
Advanced Elasticsearch Query DSL and aggregations, with ES|QL
Write advanced Elasticsearch queries: bool, filter and score, nested, function_score and BM25 rel...
Advanced Kibana: data views, Lens, dashboards, alerting and reporting
Use Kibana in depth: data views and runtime fields, Discover, Lens and formulas, dashboards and c...
Vector search and RAG with Elasticsearch: dense_vector, kNN, hybrid search and RRF
Build semantic search with Elasticsearch: embeddings, the dense_vector field, kNN search, semanti...
Indexing and searching in OpenSearch: mapping, DSL, PPL and SQL
Declare an index template, index with bulk, search with the Query DSL, aggregate and query with P...
Archiving, replaying and searching: S3, Replay, Cribl Lake and Cribl Search
Keeping all data cheaply and finding it on demand: partitioned S3 destination, JSON and Parquet f...
Automation and infrastructure as code for Elasticsearch: API, Terraform, Ansible and CI/CD
Automate Elasticsearch administration: REST API and clients, the elasticstack Terraform provider ...
Elasticsearch distributed architecture: node roles, shards, replicas and allocation
Understand how Elasticsearch works as a distributed system: node roles, master nodes and quorum, ...
Cross-cluster search and cross-cluster replication: multi-cluster Elasticsearch architectures
Design multi-cluster Elasticsearch architectures: remote clusters, cross-cluster search, cross-cl...
Elasticsearch ingestion: Bulk API, ingest pipelines, enrich and reindex
Ingest and transform data in Elasticsearch: Bulk API, ingest pipelines and processors (grok, diss...