Skip to content

[ESRTEST-31237] Add the _source parameter to TopHits aggregation - #80

Merged
sergio-bobillier merged 1 commit into
sb-ESRTEST-31237-add-sort-parameter-to-top-hits-agrregationfrom
sb-ESRTEST-31237-add-_source-parameter-to-top-hits-agrregation
Sep 2, 2026
Merged

[ESRTEST-31237] Add the _source parameter to TopHits aggregation#80
sergio-bobillier merged 1 commit into
sb-ESRTEST-31237-add-sort-parameter-to-top-hits-agrregationfrom
sb-ESRTEST-31237-add-_source-parameter-to-top-hits-agrregation

Conversation

@sergio-bobillier

Copy link
Copy Markdown
Collaborator

The parameter allows the user to specify which fields should be returned in the top hits aggregation results. This can help reduce the amount of data returned and improve performance when only specific fields are needed.

false can also be given to get rid of the _source field in the results, which can be useful when the user is only interested in the document IDs.

The parameter allows the user to specify which fields should be returned
in the top hits aggregation results. This can help reduce the amount of
data returned and improve performance when only specific fields are
needed.

false can also be given to get rid of the _source field in the results,
which can be useful when the user is only interested in the document
IDs.
@sergio-bobillier
sergio-bobillier force-pushed the sb-ESRTEST-31237-add-_source-parameter-to-top-hits-agrregation branch from 4ed9deb to daf690e Compare August 31, 2026 09:13
@sergio-bobillier
sergio-bobillier merged commit 0a02190 into master Sep 2, 2026
2 checks passed
@sergio-bobillier
sergio-bobillier deleted the sb-ESRTEST-31237-add-_source-parameter-to-top-hits-agrregation branch September 2, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants