I've been using the searchkick gem with elasticsearch with no problems on a Rails 4.2.0 application. I have a single Video model using searchkick.
For some reason rake searchkick:reindex:all
is now failing consistently with:
Reindexing Video... rake aborted! Faraday::ConnectionFailed: execution expired
I originally installed elasticsearch via brew install elasticsearch
, which returns:
Warning: elasticsearch-1.3.4 already installed
Is it likely that my elasticsearch installation/database has become corrupted? If so, what is the best way to refresh it?
As per https://www.elastic.co/guide/en/elasticsearch/reference/1.4/indices-delete-index.html I tried curl -XDELETE 'http://localhost:9200/_all'
but this doesn't resolve the error.
This problem occurs on my Mac, as well as Elastic Beanstalk when I deploy this code to AWS (both were previously working correctly).