Skip to content

Commit

Permalink
Add missing fields property on top_hits aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed Apr 18, 2024
1 parent 6c80cd7 commit 292edec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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 @@ -344,6 +344,11 @@ export class TopHitsAggregation extends MetricAggregationBase {
* @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 | Field)[]
/**
* Starting document offset.
* @server_default 0
Expand Down

0 comments on commit 292edec

Please sign in to comment.