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

[#2941] Implement script score query #2942

Conversation

sam-briggs-depop
Copy link
Contributor

Implements the script score query to fix #2941.
For now the ScriptScoreQueryBodyFn2 class has the terrible name because
I suspect that the current ScriptScoreQueryBodyFn is never exercised.
The ScriptScore that it accepts isn't actually a query, so will never
hit the pattern match?

Implements the script score query to fix Philippus#2941.
For now the ScriptScoreQueryBodyFn2 class has the terrible name because
I suspect that the current ScriptScoreQueryBodyFn is never exercised.
The ScriptScore that it accepts isn't actually a query, so will never
hit the pattern match?
@sam-briggs-depop sam-briggs-depop force-pushed the 2941/implement-script-score-query branch from 55d6f67 to 6b523f1 Compare October 25, 2023 17:27
Sam Briggs added 2 commits October 25, 2023 18:28
From inspection I suspect this case would never be hit, because
ScriptScore doesn't implement the Query trait.
This was the only call site for ScriptScoreQueryBodyFn (which has an odd
name, given it accepted a ScriptScore and not a ScriptScoreQuery).
Therefore I've removed it, and put the ScriptScoreQueryBodyFn2 in its
place
TODO: this test is failing currently
@sam-briggs-depop sam-briggs-depop marked this pull request as draft October 25, 2023 18:59
@sksamuel
Copy link
Collaborator

sksamuel commented Nov 4, 2023

The PR is still in draft. If it's ready, bar that other test, please move to ready state.

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.

Implement ScriptScoreQuery
3 participants