Skip to content

delete_by_query from Search.delete() #1395

Closed
@jdratlif

Description

@jdratlif

I am trying to run a delete_by_query by using the delete() method of my Search object, but it times out.

What can I do to make sure it keeps running until completion?

This is the exception I get
elasticsearch.exceptions.ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPSConnectionPool(host='localhost', port=9200): Read timed out. (read timeout=300))

Trying to add a request_timeout parameter led me to a

search.delete(request_timeout=0)

TypeError: delete() got an unexpected keyword argument 'request_timeout'

TypeError exception.

The docs for the delete_by_query call say that by default it keeps running until it is finished, so there must be something I need to do with timeout to make sure it does.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions