Skip to content

Commit e5fca90

Browse files
Allow single function in FunctionScoreQuery.functions (#5576) (#5581)
(cherry picked from commit 9bd939c) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 27cfaf1 commit e5fca90

File tree

5 files changed

+44
-18
lines changed

5 files changed

+44
-18
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 19 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/query_dsl/compound.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class FunctionScoreQuery extends QueryBase {
115115
/**
116116
* One or more functions that compute a new score for each document returned by the query.
117117
*/
118-
functions?: FunctionScoreContainer[]
118+
functions?: FunctionScoreContainer | FunctionScoreContainer[]
119119
/**
120120
* Restricts the new score to not exceed the provided limit.
121121
*/

0 commit comments

Comments
 (0)