-
Notifications
You must be signed in to change notification settings - Fork 186
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
feat: Add a collapse
method to opensearchpy.helpers.search.Search
#409
Conversation
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.
Looks good! Add something to the users guide and resolve CHANGELOG conflict?
Signed-off-by: Quentin Coumes <[email protected]>
I resolved the conflict. I don't know where I should add some documentation in the user guide. The Using DSL features from opensearch-dsl-py chapter is mainly a redirection to It seems weird to have a subchapter about |
Yes, you're of course right. Would love someone (hint hint) to contribute some basic features doc. I'll let it slide for this PR :) Thank you! |
Codecov Report
@@ Coverage Diff @@
## main #409 +/- ##
==========================================
+ Coverage 71.66% 71.72% +0.05%
==========================================
Files 77 77
Lines 7190 7204 +14
==========================================
+ Hits 5153 5167 +14
Misses 2037 2037
|
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
Description
This PR adds a
collapse
method toopensearchpy.helpers.search.Search
which allows adding acollapse
requirement to a query without the need of.extra()
.This is achieved similarly to how
sort()
is done.Issues Resolved
#408