Skip to content

Add additional sort options to Top Hits Aggregation #2968

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

Merged
merged 3 commits into from
Dec 21, 2017

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Dec 19, 2017

Top Hits Aggregation fluent lambda syntax constrains sort options to field sorting, even though ITopHitsAggregation can accept any implementation of ISort. This commit deprecates the current fluent Sort implementation in favour of an implementation that allow multiple sort options besides field sorting, and assigns the resulting collection of sort options to IList.

Update TopHitsAggregation usage test to call the new Sort method.

Fixes #2913

Top Hits Aggregation fluent lambda syntax constrains sort options to field sorting, even though ITopHitsAggregation can accept any implementation of ISort. This commit deprecates the current fluent Sort implementation in favour of an implementation that allow multiple sort options besides field sorting, and assigns the resulting collection of sort options to IList<ISort>.

Update TopHitsAggregation usage test to call the new Sort method.

Fixes #2913
@russcam
Copy link
Contributor Author

russcam commented Dec 19, 2017

Port to master and remove the [Obsolete]ed Sort method

Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - dont forget to make changes when porting to 6.0

@russcam russcam merged commit 826ca5e into 5.x Dec 21, 2017
russcam added a commit that referenced this pull request Dec 21, 2017
* Add additional sort options to Top Hits Aggregation

Top Hits Aggregation fluent lambda syntax constrains sort options to field sorting, even though ITopHitsAggregation can accept any implementation of ISort. This commit deprecates the current fluent Sort implementation in favour of an implementation that allow multiple sort options besides field sorting, and assigns the resulting collection of sort options to IList<ISort>.

Update TopHitsAggregation usage test to call the new Sort method.

Fixes #2913
russcam added a commit that referenced this pull request Dec 21, 2017
* Add additional sort options to Top Hits Aggregation

Top Hits Aggregation fluent lambda syntax constrains sort options to field sorting, even though ITopHitsAggregation can accept any implementation of ISort. This commit deprecates the current fluent Sort implementation in favour of an implementation that allow multiple sort options besides field sorting, and assigns the resulting collection of sort options to IList<ISort>.

Update TopHitsAggregation usage test to call the new Sort method.

Fixes #2913
@russcam russcam deleted the fix/5.x-top-hits-multi-sort branch December 21, 2017 04:24
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