mikaelmattsson / elasticsearch-indexer

Index WordPress posts and post meta data using Elasticseach.
GNU General Public License v2.0
43 stars 5 forks source link

Host admin setting not intuitive / restrictive #7

Closed achilles283 closed 9 years ago

achilles283 commented 9 years ago

Initially entered the full URL to my hosted ES instance in the "Host" admin field (https://xxx.bonsai.io/) and received the following error:

Uncaught exception 'Elasticsearch\Common\Exceptions\TransportException' with message 'Unknown SSL protocol error in connection to ...

It would be nice to include example formats expected in the "Host" field in the admin settings panel and/or documentation.

Should also update httpGet, httpPost, and httpPut functions in ElasticSearch.php to allow https connections.

mikaelmattsson commented 9 years ago

Can you confirm that it is working now?

mikaelmattsson commented 9 years ago

I have confirmed that https is working now. You will have to specify the port when using https. elasticsearch-php defaults to 80 even when using https when it should use 443. I've updated the settings panel to refect this problem. The configuration now accepts urls with and without the protocol-prefix and defaults to http.