Skip to content

Expose refresh param to relevant methods in ElasticsearchDocumentStore #2605

@mpangrazzi

Description

@mpangrazzi

Is your feature request related to a problem? Please describe.
In some use cases (also tests) it may be needed to have the index updated (i.e. refreshed) immediately after an update operation.

Describe the solution you'd like
Exposing refresh as a param with default value can ensure the read-your-writes consistency.

NOTE: this feature will also allow us to avoid usage of time.sleep in tests (no need to wait for the index to be refreshed if we use the refresh param)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions