Skip to content

Commit

Permalink
Add optional query param in _field_caps to return only fields with va…
Browse files Browse the repository at this point in the history
…lue in index (#2413)
  • Loading branch information
piergm authored Feb 12, 2024
1 parent 4cb8434 commit 88bcaaa
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
22 changes: 22 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions specification/_global/field_caps/FieldCapabilitiesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export interface Request extends RequestBase {
* @availability serverless
*/
types?: string[]
/**
* If false, empty fields are not included in the response.
* @availability stack since=8.13.0
* @availability serverless
* @server_default true
*/
include_empty_fields?: boolean
}
body: {
/**
Expand Down
5 changes: 5 additions & 0 deletions specification/_json_spec/field_caps.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
"types": {
"type": "list",
"description": "Only return results for fields that have one of the types in the list"
},
"include_empty_fields": {
"type": "boolean",
"default": true,
"description": "Indicates whether empty fields should be included in the response."
}
},
"body": {
Expand Down

0 comments on commit 88bcaaa

Please sign in to comment.