Skip to content

Conversation

@mrkm4ntr
Copy link
Contributor

@mrkm4ntr mrkm4ntr commented Nov 6, 2025

I would like to modify the sub-query of the FunctionScoreQuery after its construction, but since the query field is final, reconstruction is necessary. However, because scoreMode and maxBoost are not accessible, reconstruction is not possible. Therefore, I would like to add getters for these fields.

@elasticsearchmachine elasticsearchmachine added v9.3.0 needs:triage Requires assignment of a team area label external-contributor Pull request authored by a developer outside the Elasticsearch team labels Nov 6, 2025
@PeteGillinElastic PeteGillinElastic added :Search Relevance/Ranking Scoring, rescoring, rank evaluation. and removed needs:triage Requires assignment of a team area label labels Nov 6, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Nov 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@pmpailis pmpailis self-requested a review November 7, 2025 11:33
@pmpailis pmpailis self-assigned this Nov 7, 2025
@pmpailis
Copy link
Contributor

pmpailis commented Nov 7, 2025

Thanks @mrkm4ntr ! Change seems rather straightforward and looks ok as far as changing the API goes, since we already have getters for the other members.

Let me run CI to get some green checks :)

@pmpailis
Copy link
Contributor

pmpailis commented Nov 7, 2025

buildkite test this please

@pmpailis
Copy link
Contributor

pmpailis commented Nov 7, 2025

@mrkm4ntr could you please merge the latest changes from main as some failures seem to be due to that? Thanks!

@benwtrent
Copy link
Member

buildkite test this please

@pmpailis
Copy link
Contributor

A test was failing on the latest test run, which is similar to the one reported in #137625.

We already have a PR to address this, so once merged, I'll rerun CI to get a green build and proceed with this PR.

@pmpailis
Copy link
Contributor

buildkite test this please

Copy link
Contributor

@pmpailis pmpailis left a comment

Choose a reason for hiding this comment

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

LGTM

@pmpailis pmpailis merged commit 9426456 into elastic:main Nov 12, 2025
36 checks passed
@pmpailis
Copy link
Contributor

CI is green, so will proceed with merging this PR! Thanks @mrkm4ntr !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants