Skip to content

Conversation

@mcenkar
Copy link
Contributor

@mcenkar mcenkar commented Apr 4, 2025

  • Removed not used queryName field,
  • Removed incorrect boost field,
  • Made required negativeBoost field.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-boosting-query.html#boosting-top-level-params

Previously it was possible to create boosting query with incorrect body, for example with field boost that doesn't exist, or without required negativeBoost.

@mcenkar mcenkar force-pushed the main branch 2 times, most recently from 6f0c0fa to 6938802 Compare April 24, 2025 09:47
Copy link
Owner

@Philippus Philippus left a comment

Choose a reason for hiding this comment

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

Can you rename the commit and the PR? It's not really a "refactor", it's more a "fix".

@mcenkar mcenkar changed the title refactor: boosting query parameters fix: boosting query parameters Apr 25, 2025
- Removed not used queryName field,
- Removed incorrect boost field,
- Made required negativeBoost field.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-boosting-query.html#boosting-top-level-params

Previously it was possible to create boosting query with incorrect body, for
example with field boost that doesn't exist, or without required negativeBoost.
@mcenkar
Copy link
Contributor Author

mcenkar commented Apr 25, 2025

Sure, done, there are some failing tests but not from me

@Philippus
Copy link
Owner

I'll add a PR on top of this PR to facilitate with migration.

@Philippus Philippus merged commit fcd4421 into Philippus:main Apr 25, 2025
7 of 10 checks passed
Philippus pushed a commit that referenced this pull request May 7, 2025
- Removed not used queryName field,
- Removed incorrect boost field,
- Made required negativeBoost field.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-boosting-query.html#boosting-top-level-params

Previously it was possible to create boosting query with incorrect body, for
example with field boost that doesn't exist, or without required negativeBoost.

(cherry picked from commit fcd4421)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants