-
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
Query DSL should disallow setting boosts on inner span queries #28390
Comments
++ to make the fix here first |
Pinging @elastic/es-search-aggs |
I'd like to work on this one. |
cURL recreation script created in this Gist. |
After having a look at implementations of
Here are below other span queries in which boost shouldn't be disallowed as they aren't compound.
I'll try to raise an exception when boost field is parsed in compound span queries. |
I've opened PR #34112. Here is a sample output when running referenced Gist.
Notes
But please let me know what do you think about this implementation. @jpountz I've seen this line of code below in elasticsearch/server/src/main/java/org/elasticsearch/index/query/SpanMultiTermQueryBuilder.java Line 196 in 269ae0b
|
Closing as this was implemented on the ES side |
Relates to elastic/elasticsearch#28390 and elastic/elasticsearch#34112 (cherry picked from commit c4d9a44)
This is a follow-up of https://discuss.elastic.co/t/troubles-with-complex-span-query-term-boosting/116106. It is a bit confusing that we are allowing boosts on inner span queries in spite of the fact that they will be ignored.
One idea to fix it is to make
SpanBoostQuery
a forbidden API (I'll bring up removing it from Lucene) and replacing usage ofSpanBoostQuery
withBoostQuery
.The text was updated successfully, but these errors were encountered: