I'm using searchkick gem for searching in my rails app.
It was working fine but suddenly getting this error the next day on searching.
For all those who find this and might be wondering how to restart the elasticsearch plugin:
/etc/init.d/elasticsearch restart
worked for me.