-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add missing _routing field in SearchHit interface #516
Add missing _routing field in SearchHit interface #516
Conversation
Signed-off-by: Tushar <tmonga06@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #516 +/- ##
===========================================
+ Coverage 57.29% 67.96% +10.66%
===========================================
Files 315 376 +61
Lines 9823 8852 -971
===========================================
+ Hits 5628 6016 +388
+ Misses 2902 1555 -1347
+ Partials 1293 1281 -12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Tushar <tmonga06@gmail.com>
Thanks for the PR. |
Signed-off-by: Tushar <tmonga06@gmail.com>
84aeb45
to
ab6e69f
Compare
Signed-off-by: tushar2404 <53367076+tushar2404@users.noreply.github.com>
done |
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.
LGTM, but is it possible to add your test to TestSearch
by just adding the Routing
Param to the index request? Or does it collide with the other tests?
Signed-off-by: Tushar <tmonga06@gmail.com>
Description
Added Routing field in SearchHit interface
premise:
The OpenSearch Search API currently does not return the routing key in its responses. The routing key is a crucial piece of information, especially in cases where the user or the application has specified a custom routing key for a document at the time of its creation. This omission means that any application or user querying documents from OpenSearch will not receive this key as part of the search results.
Issues Resolved
This pull request addresses this gap by adding a Routing field to the SearchHit interface. With this change, the API will now include the routing key in the search results.
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.