Search documents
searchRun Elasticsearch queries using Query DSL to retrieve matching hits and aggregations from specified indices.
Instructions
Run an Elasticsearch search using Query DSL and return the matching hits and aggregations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggs | No | Aggregations object | |
| from | No | Offset of the first hit to return | |
| size | No | Number of hits to return (default 10) | |
| sort | No | Sort specification (string, object, or array) | |
| index | Yes | Index name, comma-separated list, or pattern to search | |
| query | No | Query DSL query object, e.g. { "match": { "field": "value" } } | |
| source | No | _source filtering: boolean, field, or array of fields |