-
Notifications
You must be signed in to change notification settings - Fork 195
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
Adding support for docvalue_fields in msearch #1429
Conversation
Signed-off-by: Ankit Jain <akjain@amazon.com>
Signed-off-by: Ankit Jain <akjain@amazon.com>
|
||
MsearchResponse<ShopItem> response = sendMSearchRequest(index, List.of(sortedItemsQuery)); | ||
assertEquals(1, response.responses().size()); | ||
assertEquals(3, response.responses().get(0).result().hits().hits().size()); |
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.
Integration tests are failing on the .result()
call as the response is a failure for some reason
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.
Fixed the integration tests, essentially doc value fields are not allowed on text fields (name
). Changing that to quantity
fixed the issue
Signed-off-by: Ankit Jain <akjain@amazon.com>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/opensearch-java/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/opensearch-java/backport-2.x
# Create a new branch
git switch --create backport/backport-1429-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0521c3c595e886dc0119ea3f652d48a5da43aaea
# Push it to GitHub
git push --set-upstream origin backport/backport-1429-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/opensearch-java/backport-2.x Then, create a pull request where the |
@jainankitk Could you please follow the above instructions to backport this PR to 2.x? |
* Adding support for docvalue_fields in msearch Signed-off-by: Ankit Jain <akjain@amazon.com> * Add changelog and spotless fixes Signed-off-by: Ankit Jain <akjain@amazon.com> * Fixing integration test failures Signed-off-by: Ankit Jain <akjain@amazon.com> --------- Signed-off-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit 0521c3c)
|
Signed-off-by: Ankit Jain <akjain@amazon.com>
* Adding support for docvalue_fields in msearch Signed-off-by: Ankit Jain <akjain@amazon.com> * Add changelog and spotless fixes Signed-off-by: Ankit Jain <akjain@amazon.com> * Fixing integration test failures Signed-off-by: Ankit Jain <akjain@amazon.com> --------- Signed-off-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit 0521c3c)
Description
Adds support for docvalue_fields in msearch
Issues Resolved
#1428
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.