Skip to content

Opensearch not working in magento 2.4.6

i am new to magento, and i have a problem i need help with.
I installed magento 2.4.6 in bluehost, i have setup and it’s working, but i realized that anytime i search for product on the main website, i got this error: [![No alive nodes found in your cluster][1]][1]

In the magento backend, i setup the opensearch this way:
hostname: ‘localhost’,
port:’9200′,
index_prefix:’magento2′,
auth: false,

In my env.php file i have this:

     'enabled' => true,
     'hostname' => 'localhost',
     'port' => '9200',
     'index_prefix' => 'magento2',
     'enable_auth' => false,
     'username' => '',
     'password' => ''
 ], ```

Kindly help me out to fix this problem, if the opensearh settings are not correct, how do i get the proper configuration for it.

I look forward to your help.

Thank you all
    


[1]: https://i.stack.imgur.com/ydi7g.png