search_elasticsearch
Run Elasticsearch queries against download and package analytics to analyze downloads by product, OS, package type, or date range.
Instructions
Run an Elasticsearch query (JSON DSL) against download/package data.
Use this for product download data: downloads by product, package type, OS, components, growth rates, EOL packages, Pro-builds.
Args: index: The Elasticsearch index to search. query_body: A JSON string containing the Elasticsearch query DSL. Supports match, term, range, bool, aggregations, etc. size: Max documents to return (default 500).
Examples: - {"query": {"match": {"product": "postgresql"}}, "size": 20} - {"size": 0, "aggs": {"by_package": {"terms": {"field": "package_type"}}}} - {"query": {"range": {"date": {"gte": "2025-01-01"}}}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| index | Yes | ||
| query_body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |