Skip to content

Moving ScoreFunctionBuilders under VersionedNamedWriteable#83358

Merged
cbuescher merged 1 commit intoelastic:masterfrom
cbuescher:versionedNW-functionScoreBuilders
Feb 1, 2022
Merged

Moving ScoreFunctionBuilders under VersionedNamedWriteable#83358
cbuescher merged 1 commit intoelastic:masterfrom
cbuescher:versionedNW-functionScoreBuilders

Conversation

@cbuescher
Copy link
Copy Markdown
Member

In #81809 we introduced a mechanism to check searializability of search request
to earlier version nodes already on the coordinating node. This requires
knowledge about the version that NamedWritable classes have been introduced,
which is why we started moving classes that are used inside the search request
under the VersionedNamedWriteable interface to make sure future additions
implement the mthod that provides the version information.
This change moves ScoreFunctionBuilders which are used in function score queries
under that interface. Since all these builders have been around before 7.0 we
return the empty version constant for them.

In elastic#81809 we introduced a mechanism to check searializability of search request
to earlier version nodes already on the coordinating node. This requires
knowledge about the version that NamedWritable classes have been introduced,
which is why we started moving classes that are used inside the search request
under the VersionedNamedWriteable interface to make sure future additions
implement the mthod that provides the version information.
This change moves ScoreFunctionBuilders which are used in function score queries
under that interface. Since all these builders have been around before 7.0 we
return the empty version constant for them.
@cbuescher cbuescher added :Search/Search Search-related issues that do not fall into other categories >refactoring v8.1.0 labels Feb 1, 2022
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Feb 1, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@cbuescher cbuescher merged commit b0fe55d into elastic:master Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants