_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
Let's talk

Elasticsearch Queries

21. 11. 2025 1 min read intermediate

Elasticsearch Query DSL for complex searching.

Match

GET /articles/_search
{
  "query": {
    "match": {
      "title": "elasticsearch tutorial"
    }
  }
}

Bool

{
  "query": {
    "bool": {
      "must": [{"match": {"content": "kubernetes"}}],
      "filter": [
        {"term": {"tags": "devops"}},
        {"range": {"published_at": {"gte": "2024-01-01"}}}
      ]
    }
  }
}

Aggregations

{
  "size": 0,
  "aggs": {
    "by_tag": {"terms": {"field": "tags", "size": 20}},
    "avg_views": {"avg": {"field": "views"}}
  }
}

Query DSL = Powerful

Bool queries + aggregations cover most needs.

elasticsearchqueriessearch
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.