opensearch-project / opensearch-py

Python Client for OpenSearch
https://opensearch.org/docs/latest/clients/python/
Apache License 2.0
338 stars 170 forks source link

Fixed issue 769:Collapse not preserved when chaining a search instance #771

Closed imvtsl closed 2 months ago

imvtsl commented 2 months ago

Description

When clone method is called for search.filter(), collapse attribute was not copied. Therefore, collapse attribute wasn't getting chained to the search object. This fix adds copying the collapse attribute to the search object in the clone method.

Issues Resolved

Resolves #[769]

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.

imvtsl commented 2 months ago

@saimedhi Please review.