-
Notifications
You must be signed in to change notification settings - Fork 183
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
[BUG] Collapse not preserved when chaining a Search instance #769
Comments
Hello @Mdelaf, thank you for reporting this issue; would you be interested in contributing a fix, please? |
@Mdelaf In case you don't want to work on the fix, I would be happy to pitch in and contribute to the fix. Please let us know if you are working on the fix. |
Thanks @saimedhi . I will raise a PR with fix. |
Resolved by PR #771 |
Hello, |
Yes, https://github.com/opensearch-project/opensearch-py/pull/771/files should have had async support too :( Care to contribute? |
Signed-off-by: Radoslaw Kuczynski <[email protected]>
Signed-off-by: Radoslaw Kuczynski <[email protected]>
Signed-off-by: Radoslaw Kuczynski <[email protected]>
#827 fixed this, please reopen if you find more misses. |
What is the bug?
Chain operations over a
Search
object do not preserve the_collapse
attribute.How can one reproduce the bug?
What is the expected behavior?
The
_collapse
property should be preserved when chaining additional methods after to the Search object.What is your host/environment?
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
OpenSearch 2.6.0
Do you have any screenshots?
Not needed.
Do you have any additional context?
I think this bug was introduced during the implementation of collapse, because the
_collapse
property is not copied in the_clone
method.The text was updated successfully, but these errors were encountered: