Zend certified PHP/Magento developer

Magento 2.4.2 opensearch error

I’m using opensearch and I’m getting the following error on the category page. I’m also getting a similar error during indexing.

1 exception(s):
Exception #0 (ElasticsearchCommonExceptionsBadRequest400Exception): {"error":"no handler found for uri [/magento2_product_1/document/_search] and method [POST]"}

I’m using brew for opensearch, the version is 2.3.0.