Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESFF-2708: allow sorts to set multiple #10

Merged
merged 1 commit into from
May 2, 2024

Conversation

mikesmitharoo
Copy link

@mikesmitharoo mikesmitharoo commented May 1, 2024

The existing sort function exposed by the os-query lib isn't very flexible (can't set multiple) and also isn't in the same pattern as the other components like aggs and queries.

This PR refactors the sort funcs for the top level query and the top hits aggs to allow a list of sorts to sent, this makes it easier for consuming apps to build a group of sorts in one hit.

@mikesmitharoo mikesmitharoo force-pushed the ESFF-2708/extend-sorts branch from 31df776 to a9dfb1b Compare May 1, 2024 16:36
@mikesmitharoo mikesmitharoo marked this pull request as ready for review May 2, 2024 09:05
@mikesmitharoo mikesmitharoo requested a review from a team as a code owner May 2, 2024 09:05
@mikesmitharoo mikesmitharoo merged commit 91b3efc into main May 2, 2024
4 checks passed
@mikesmitharoo mikesmitharoo deleted the ESFF-2708/extend-sorts branch May 2, 2024 09:57
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