Skip to content
Go to file

Latest commit

Ref #1475 

Currently, `AbstractUpdateAction::setRefresh` only accepts boolean values: 
- `true` - to perform an immediate refresh
- `false` - to not refresh at all

The [documentation](, however, strongly suggests the usage of `wait_for` option to ensure a good cluster performance while doing the refresh operation. But the problem is that `wait_for` is of type `string`; thus, we cannot pass it as an argument to the method.

This modifies `AbstractUpdateAction::setRefresh` so that arguments of type `string` such as `wait_for` can also be passed to the method. Additionally, the return type of its getter counterpart, `AbstractUpdateAction::getRefresh`, has also been modified to mirror the accepted types of the setter.

Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Elastica: elasticsearch PHP Client

Latest Stable Version Build Status Dependency Status Scrutinizer Code Quality Total Downloads Join the chat at

All documentation for Elastica can be found under If you have questions, don't hesitate to ask them on Stackoverflow and add the Tag "Elastica" or in our Gitter channel. All library issues should go to the issue tracker from github.


This release is compatible with all Elasticsearch 7.0 releases and onwards. It was tested with version 7.3.0.


Contributions are always welcome. For details on how to contribute, check the CONTRIBUTING file.

Versions & Dependencies

This project tries to follow Elasticsearch in terms of End of Life and maintenance since 5.x

Elastica ElasticSearch elasticsearch-php PHP
7.x 7.x ^7.0 ^7.2
6.x 6.x ^6.0 ^7.0
5.x (unmaintained) 5.x ^5.0 >=5.6
3.2.3 (unmaintained) 2.4.0 no >=5.4
2.x (unmaintained) 1.7.2 no >=5.3.3

You can’t perform that action at this time.