Newer versions (>= 8) of ruflin/Elastica might no longer be compatible with OpenSearch that CirrusSearch relies on and we might need to fork/port this library to support it.
https://packagist.org/packages/ruflin/elastica#8.0.0
https://packagist.org/packages/ruflin/elastica#8.1.0
https://packagist.org/packages/ruflin/elastica#8.2.0