Skip to content

Commit ae2eb55

Browse files
jimczil-trotta
authored andcommitted
Add exclude_vectors parameter to source filtering in _search (#4559)
Add support for the exclude_vectors option (introduced in elastic/elasticsearch#128735) to the source filter specification.
1 parent b9d6ff5 commit ae2eb55

File tree

6 files changed

+62
-8
lines changed

6 files changed

+62
-8
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 4 additions & 0 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: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 17 additions & 3 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: 17 additions & 3 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: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/search/_types/SourceFilter.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,26 @@ import { Fields } from '@_types/common'
2424
* @shortcut_property includes
2525
*/
2626
export class SourceFilter {
27-
/** @aliases exclude */
27+
/**
28+
* If `true`, vector fields are excluded from the returned source.
29+
*
30+
* This option takes precedence over `includes`: any vector field will
31+
* remain excluded even if it matches an `includes` rule.
32+
*/
33+
exclude_vectors?: boolean
34+
35+
/**
36+
* A list of fields to exclude from the returned source.
37+
*
38+
* @aliases exclude
39+
*/
2840
excludes?: Fields
29-
/** @aliases include */
41+
42+
/**
43+
* A list of fields to include in the returned source.
44+
*
45+
* @aliases include
46+
*/
3047
includes?: Fields
3148
}
3249

0 commit comments

Comments
 (0)