-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Fix Semantic Query Rewrite Interception Drops Boosts #129282
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
Merged
Samiul-TheSoccerFan
merged 68 commits into
elastic:main
from
Samiul-TheSoccerFan:fix-semantic-query-rewrite-boost-issue
Jul 17, 2025
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
ccd64ae
fix boosting for knn
Samiul-TheSoccerFan 9338cd5
Fixing for match query
Samiul-TheSoccerFan 370931d
fixing for match subquery
Samiul-TheSoccerFan b85abda
fix for sparse vector query boost
Samiul-TheSoccerFan 5db2686
fix linting issues
Samiul-TheSoccerFan 2ce691e
Update docs/changelog/129282.yaml
Samiul-TheSoccerFan 4100200
update changelog
Samiul-TheSoccerFan 3406ae1
Copy constructor with match query
Samiul-TheSoccerFan d07952a
util function to create sparseVectorBuilder for sparse query
Samiul-TheSoccerFan f133632
util function for knn query to support boost
Samiul-TheSoccerFan a9048f0
adding unit tests for all intercepted query terms
Samiul-TheSoccerFan 5a1dab9
Adding yaml test for match,sparse, and knn
Samiul-TheSoccerFan 6cef441
Adding queryname support for nested query
Samiul-TheSoccerFan faa35ea
fix code styles
Samiul-TheSoccerFan 675fb22
merge from main
Samiul-TheSoccerFan 13e791e
Fix failed yaml tests
Samiul-TheSoccerFan 3a5a30f
Update docs/changelog/129282.yaml
Samiul-TheSoccerFan 016e448
update yaml tests to expand test scenarios
Samiul-TheSoccerFan 70b228e
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine d5e7caa
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine efcf9c4
Updating knn to copy constructor
Samiul-TheSoccerFan 00eb6ad
merge from main
Samiul-TheSoccerFan f449299
adding yaml tests for multiple indices
Samiul-TheSoccerFan 6db0abf
refactoring match query to adjust boost and queryname and move to cop…
Samiul-TheSoccerFan daf2cb4
refactoring sparse query to adjust boost and queryname and move to co…
Samiul-TheSoccerFan b88b077
[CI] Auto commit changes from spotless
elasticsearchmachine 9e725cb
Refactor sparse vector to adjust boost and queryname in the top level
Samiul-TheSoccerFan 651ee2b
Refactor knn vector to adjust boost and queryname in the top level
Samiul-TheSoccerFan a356b44
merge from main
Samiul-TheSoccerFan 71eac8d
fix knn combined query
Samiul-TheSoccerFan d71bf2c
fix unit tests
Samiul-TheSoccerFan 675463c
fix lint issues
Samiul-TheSoccerFan 201d27c
remove unused code
Samiul-TheSoccerFan daf2f6e
Update inference feature name
Samiul-TheSoccerFan 2521b48
Remove double boosting issue from match
Samiul-TheSoccerFan 61f9445
Fix double boosting in match test yaml file
Samiul-TheSoccerFan f4cadaa
move to bool level for match semantic boost
Samiul-TheSoccerFan 08909de
fix double boosting for sparse vector
Samiul-TheSoccerFan 37bfc43
fix double boosting for sparse vector in yaml test
Samiul-TheSoccerFan fa5cfe7
fix knn combined query
Samiul-TheSoccerFan 0640631
fix knn combined query
Samiul-TheSoccerFan 404efcf
fix sparse combined query
Samiul-TheSoccerFan f73285d
fix knn yaml test for combined query
Samiul-TheSoccerFan 96f5aa6
refactoring unit tests
Samiul-TheSoccerFan 3065e5b
linting
Samiul-TheSoccerFan 828d8c2
fix match query unit test
Samiul-TheSoccerFan 6a2e0a5
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine bde54df
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine d08dbdd
adding copy constructor for match query
Samiul-TheSoccerFan fa955c3
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 916b1cc
refactor copy match builder to intercepter
Samiul-TheSoccerFan d9ef867
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine cde55d1
resolve conflicts from main
Samiul-TheSoccerFan 8ddda3c
[CI] Auto commit changes from spotless
elasticsearchmachine 873efdb
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 44b8aa9
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 104f16b
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 2a96d52
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 5dcfc1b
fix unit tests
Samiul-TheSoccerFan 469f598
update yaml tests
Samiul-TheSoccerFan 375ae36
fix match yaml test
Samiul-TheSoccerFan c81f184
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 394f43a
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 768b8f6
fix yaml tests with 4 digits error margin
Samiul-TheSoccerFan 98cba31
unit tests are now more randomized
Samiul-TheSoccerFan 6c6e7cf
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 4b0a6fe
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine c233ee9
Merge branch 'main' into fix-semantic-query-rewrite-boost-issue
elasticmachine 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 129282 | ||
summary: "Fix query rewrite logic to preserve `boosts` and `queryName` for `match`,\ | ||
\ `knn`, and `sparse_vector` queries on semantic_text fields" | ||
area: Search | ||
type: bug | ||
issues: [] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Samiul-TheSoccerFan marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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
Samiul-TheSoccerFan marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.