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)
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
refreshas a param with default value can ensure the read-your-writes consistency.NOTE: this feature will also allow us to avoid usage of
time.sleepin tests (no need to wait for the index to be refreshed if we use therefreshparam)