Elasticsearch · Arazzo Workflow
Elasticsearch Search and Fetch the Top Hit
Version 1.0.0
Run a quick URI search to size a result set, re-run it as a paged DSL query, and fetch the full source of the top hit.
Provider
Workflows
search-and-fetch
Probe a query with a URI search, page it with a DSL search, then fetch the top hit in full.
Confirms a query matches, retrieves a paged and ranked result set through the query DSL, and reads the full source of the highest scoring document.
1
probeQuery
Run a lightweight URI search to confirm the query matches something before spending a structured query on it.
2
pagedSearch
Re-run the query through the query DSL with explicit size and from, giving the caller ranked, paged control the URI search cannot express.
3
fetchTopHit
Fetch the complete document behind the top ranked hit, which returns the full source rather than the ranking-shaped search projection.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.