Skip to content

Conversation

@baekgyu-kim
Copy link
Contributor

Description

This change ensures that ScoreSort correctly identifies itself as a score-based sort.
Previously, the _sortOptionsKind() method incorrectly returned Kind.Doc.
This PR fixes the return value to Kind.Score to align with its intended behavior.

Issues Resolved

This pull request resolved the issue #1492 .

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@baekgyu-kim baekgyu-kim changed the title 1492 - [BUG] fix: ScoreSort _sortOptionsKind() should return Kind.Score Fix incorrect SortOptions.Kind mapping in ScoreSort Dec 23, 2025
@reta
Copy link
Collaborator

reta commented Dec 23, 2025

Thanks @baekgyu-kim for working on this, I believe the issue is a bit more complicated than that. Right now the ScoreSort is used to cover both _doc and _score variants, as per SortOptionsBuilders implementation. Changing this default will potentially (silently) break a lot of applications.

@baekgyu-kim
Copy link
Contributor Author

Hello @reta,
Thank you for the clear explanation!
It seems I missed some contexts of how ScoreSort is being used, focusing only on the class name itself.

I will close this PR for now.
Thank you for your review and for helping me onboard into the project.

Have a great day.

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