Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing fields property on top_hits aggregation #2522

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions specification/_types/aggregations/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { Field, Fields } from '@_types/common'
import { double, integer, long } from '@_types/Numeric'
import { QueryContainer } from '@_types/query_dsl/abstractions'
import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions'
import { Script, ScriptField } from '@_types/Scripting'
import { Aggregation } from './Aggregation'
import { Missing } from './AggregationContainer'
Expand Down Expand Up @@ -338,12 +338,17 @@ export class TopHitsAggregation extends MetricAggregationBase {
/**
* Fields for which to return doc values.
*/
docvalue_fields?: Fields
docvalue_fields?: FieldAndFormat[]
/**
* If `true`, returns detailed information about score computation as part of a hit.
* @server_default false
*/
explain?: boolean
/**
* Array of wildcard (*) patterns. The request returns values for field names
* matching these patterns in the hits.fields property of the response.
*/
fields?: FieldAndFormat[]
/**
* Starting document offset.
* @server_default 0
Expand Down
Loading