Skip to content

[docs] Add param notes to DSL search.delete documentation, fix broken links #2861

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

Merged
merged 4 commits into from
Mar 31, 2025

Conversation

lunalucadou
Copy link
Contributor

@lunalucadou lunalucadou commented Mar 27, 2025

This MR was previously opened against the DSL project but I was told I should submit it here instead: elastic/elasticsearch-dsl-py#1970

Earlier today I was trying to pass wait_for_completion=True to Search.delete but found Search.delete does not support **kwargs.

I was going to just add support for **kwargs (it would be a fairly trivial change), but after seeing elastic/elasticsearch-dsl-py#1115 and elastic/elasticsearch-dsl-py#1395, it seems the preferred way is to call Search.params first. However, this is not called out in the documentation for Search.delete, so I instead opted to add it to the documentation.

While I was at it, I noticed Search.scan and FacetedSearch.params had broken links so I fixed those as well.

The preferred way of passing parameters to the DSL `Search.delete` appears to be calling `Search.params` first,
but this is only ever discussed in GitHub issues like
elastic/elasticsearch-dsl-py#1115
and elastic/elasticsearch-dsl-py#1395.

To help anyone else who has stumbled across this, I added a note about this to the documentation.

I also went ahead and updated the links for the `Search.scan` and `FacetedSearch.params`
methods to the most recent versions since they were 404ing.
Copy link

cla-checker-service bot commented Mar 27, 2025

💚 CLA has been signed

@lunalucadou
Copy link
Contributor Author

lunalucadou commented Mar 27, 2025

I have signed the CLA.

@miguelgrinberg miguelgrinberg merged commit b6d1211 into elastic:main Mar 31, 2025
11 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 31, 2025
… links (#2861)

* Add param notes to DSL search.delete documentation, fix broken links

The preferred way of passing parameters to the DSL `Search.delete` appears to be calling `Search.params` first,
but this is only ever discussed in GitHub issues like
elastic/elasticsearch-dsl-py#1115
and elastic/elasticsearch-dsl-py#1395.

To help anyone else who has stumbled across this, I added a note about this to the documentation.

I also went ahead and updated the links for the `Search.scan` and `FacetedSearch.params`
methods to the most recent versions since they were 404ing.

* make sync and async changes the same

---------

Co-authored-by: Luna Lucadou <[email protected]>
Co-authored-by: Miguel Grinberg <[email protected]>
(cherry picked from commit b6d1211)
@miguelgrinberg
Copy link
Contributor

Thanks @lunalucadou !

miguelgrinberg pushed a commit that referenced this pull request Apr 1, 2025
… links (#2861) (#2869)

* Add param notes to DSL search.delete documentation, fix broken links

The preferred way of passing parameters to the DSL `Search.delete` appears to be calling `Search.params` first,
but this is only ever discussed in GitHub issues like
elastic/elasticsearch-dsl-py#1115
and elastic/elasticsearch-dsl-py#1395.

To help anyone else who has stumbled across this, I added a note about this to the documentation.

I also went ahead and updated the links for the `Search.scan` and `FacetedSearch.params`
methods to the most recent versions since they were 404ing.

* make sync and async changes the same

---------

Co-authored-by: Luna Lucadou <[email protected]>
Co-authored-by: Miguel Grinberg <[email protected]>
(cherry picked from commit b6d1211)

Co-authored-by: Luna Lucadou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants