-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Throw a parsing exception when boost is set in span_or query (#28390) #34112
Merged
mayya-sharipova
merged 48 commits into
elastic:master
from
cbismuth:28390_disallow_setting_boosts_on_inner_span_queries
Nov 26, 2018
Merged
Changes from 40 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
6c12c4a
Throw a parsing exception when boost is set in span_or query (#28390)
cbismuth 265acde
Throw a parsing exception when boost is parsed in span_or query (#28390)
cbismuth 268b78e
Check boost field only in SpanOrQueryBuilder#fromXContent API (#28390)
cbismuth 6effd0a
Throw a parsing exception only when boost differs from default (#28390)
cbismuth 6349cb3
Set per query builder "boost" and "query name" support (#28390)
cbismuth e8b61bd
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 04f66ce
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 8029eb2
Allow non-default boost value in outer "span_or" query(#28390)
cbismuth 0f95a83
Revert "Set per query builder "boost" and "query name" support (#28390)"
cbismuth e94a942
Allow disabling boost and query name in test query builders (#28390)
cbismuth 7c348bf
Restore previous boost and query name API (#28390)
cbismuth a20d761
Disallow setting boost in "span_containing" queries (#28390)
cbismuth e39bf1d
Disallow setting boost in "span_within" queries (#28390)
cbismuth bee3ef6
Disallow setting boost in "span_near" queries (#28390)
cbismuth c48777c
Fix "span_or" query builder exception message format (#28390)
cbismuth 9426ffe
Disallow setting boost in "span_not" queries (#28390)
cbismuth af54fc8
Restore query name generation in test query builders (#28390)
cbismuth 87da533
Ensure boost can be set in outer "span_containing" queries (#28390)
cbismuth 95ff5ed
Ensure boost can be set in outer "span_near" queries (#28390)
cbismuth 7d25d14
Ensure boost can be set in outer "span_not" queries (#28390)
cbismuth 1f08196
Ensure boost can be set in outer "span_or" queries (#28390)
cbismuth daea8b1
Ensure boost can be set in outer "span_within" queries (#28390)
cbismuth 70cffbe
Disallow setting boost in "span_gap" queries (#28390)
cbismuth 9e433b3
Extract method to check no boost value has been set (#28390)
cbismuth 006b37d
Reuse query name in exception message (#28390)
cbismuth 8f8e035
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth e8ec5c1
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth a5dd5b8
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 49ce791
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 0ac11ec
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth a88866e
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 9c751b1
Move check method to base SpanQueryBuilder class (#28390)
cbismuth 8a75747
Improve "checkNoBoost" exception message (#28390)
cbismuth 8e9c70d
Split `supportsBoost` and `supportsQueryName` test API (#28390)
cbismuth f2861cd
Remove unnecessary `supportsQueryName` parameter in test API (#28390)
cbismuth df03f38
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 11f6060
Remove boost support from span query test API (#28390)
cbismuth 043020b
Remove underscore characters in test names (#28390)
cbismuth c96aaa9
Remove boost support from `span_first` query (#28390)
cbismuth 3b667bf
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 259c446
Add migration to 7.x breaking change disclaimer (#28390)
cbismuth e486466
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 78e8c21
Update documentation (#28390)
cbismuth 16127d9
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 1fb94ee
Revert "Update documentation (#28390)"
cbismuth 94b5bcb
Fix line length to 80 characters (#28390)
cbismuth dc1e913
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth 309e00b
Merge branch 'master' into 28390_disallow_setting_boosts_on_inner_spa…
cbismuth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these 3 lines are not necessary, as each inner SpanQueryBuilder within their
fromXContent
should check forboost
and fail ifboost
provided.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compound
span_or
queries can containspan_term
inner queries and settingboost
inspan_term
queries is allowed, that's why I've added this check here, do you agree with it? See this test.