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

Implement Weight#scoreSupplier in SingleValueQuery.LuceneQuery #110043

Closed
wants to merge 2 commits into from

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jun 21, 2024

Implementing ScoreSupplier is the recommended way to create a lucene weight nowadays. more over in Lucene 10 you are not allowed to implement Weight#score and you must implement Weight#scoreSupplier. Therefore let's do it now.

@iverase iverase requested a review from nik9000 June 21, 2024 13:09
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 21, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

@iverase
Copy link
Contributor Author

iverase commented Jun 21, 2024

@elasticmachine update branch

@costin
Copy link
Member

costin commented Jun 21, 2024

Worth backporting the bug to 8.14.x

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

LGTM, though I think we'll be replacing this query with a new one that @iverase is writing anyway.

@iverase
Copy link
Contributor Author

iverase commented Jul 1, 2024

Yes, I won't be pushing this change but propose this other change: #110116

@iverase iverase closed this Jul 1, 2024
@iverase iverase deleted the weight branch July 1, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants