OptionalqueryQuery DSL query (match/term/bool/range/etc.). Omit to match all documents.
OptionalfromZero-based offset into the result set, for pagination.
OptionalsizeMax number of hits to return.
OptionalsortSort order - a field name, { field: 'asc' | 'desc' }, or the driver's raw Sort shape.
OptionalaggsNamed aggregations to compute alongside the search.
OptionalsourceRestrict/exclude which _source fields are returned.
OptionaltrackTrack the exact total hit count (rather than capping at 10,000).
Parameters accepted by
search().