Skip to content

Remove references to SpanBoostQuery#74432

Merged
romseygeek merged 5 commits intoelastic:masterfrom
romseygeek:spans/remove-span-boost
Jun 23, 2021
Merged

Remove references to SpanBoostQuery#74432
romseygeek merged 5 commits intoelastic:masterfrom
romseygeek:spans/remove-span-boost

Conversation

@romseygeek
Copy link
Copy Markdown
Contributor

@romseygeek romseygeek commented Jun 22, 2021

SpanBoostQuery will be removed in lucene 9.0. It is currently a no-op anyway,
unless it appears at the top level of a span query tree, in which case it is
equivalent to a standard BoostQuery. This commit removes references to
SpanBoostQuery from elasticsearch SpanQueryBuilders, replacing it with
BoostQuery where appropriate.

It also adds a new, breaking, check to field_masking_span to ensure that
its inner query does not have a boost set on it, bringing it into line with all
other span queries that wrap inner spans.

@romseygeek romseygeek added >breaking :Search/Search Search-related issues that do not fall into other categories >refactoring v8.0.0 v7.14.0 labels Jun 22, 2021
@romseygeek romseygeek requested a review from jpountz June 22, 2021 14:09
@romseygeek romseygeek self-assigned this Jun 22, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jun 22, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor

@javanna javanna left a comment

Choose a reason for hiding this comment

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

LGTM

@romseygeek romseygeek merged commit 4b069c2 into elastic:master Jun 23, 2021
@romseygeek romseygeek deleted the spans/remove-span-boost branch June 23, 2021 12:15
@romseygeek romseygeek mentioned this pull request Jun 23, 2021
16 tasks
romseygeek added a commit that referenced this pull request Jun 23, 2021
SpanBoostQuery will be removed in lucene 9.0. It is currently a no-op anyway,
unless it appears at the top level of a span query tree, in which case it is
equivalent to a standard BoostQuery. This commit removes references to
SpanBoostQuery from elasticsearch SpanQueryBuilders, replacing it with
BoostQuery where appropriate.

It also adds a new, breaking, check to field_masking_span to ensure that
its inner query does not have a boost set on it, bringing it into line with all
other span queries that wrap inner spans.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking >refactoring :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.14.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants