Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

Elasticsearch Tutorial

01. 02. 2023 Updated: 28. 03. 2026 1 min read intermediate
This article was published in 2023. Some information may be outdated.

Elasticsearch is a distributed search engine. Full-text search, log analytics, real-time aggregations.

Indexing

Elasticsearch Tutorial

PUT /products { “mappings”: { “properties”: { “name”: { “type”: “text”, “analyzer”: “czech” }, “price”: { “type”: “float” }, “category”: { “type”: “keyword” } }}}

Index document

POST /products/_doc

GET /products/_search { “query”: { “bool”: { “must”: [{ “match”: { “name”: “notebook” } }], “filter”: [ { “range”: { “price”: { “lte”: 30000 } } }, { “term”: { “category”: “electronics” } } ] } }}

Aggregations

GET /products/_search { “size”: 0, “aggs”: { “by_category”: { “terms”: { “field”: “category” }, “aggs”: { “avg_price”: { “avg”: { “field”: “price” } } } } }}

Key Takeaway

Elasticsearch for full-text search and analytics. Keyword for exact match, text for full-text. Aggregations for BI.

elasticsearchsearchdatabase
Share:

CORE SYSTEMS team

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.