Fwd: Connect Rails app to elasticsearch server

I am using logstash+elasticsearch to index server logs. The Elasticsearch
server is running at localhost:9200 with millions of server log docs.
I also have a Rails app running at localhost:3000. I need to connect this
rails app to the ES server.

I have read about the "elasticsearch-rails" gem but everywhere i found
them using ActiveRecords/ Models. However, i don't think ActiveRecords are
required for this. I just need a way to query the ES server index and fetch
the documents inside my Rails app.

Is there a way to do this? Can anyone please help me with this situation?
please comment if I am not clear with my question.

Thanks in advance.

You have already asked this question in another thread: Connect Rails app to elasticsearch server

Please stick to one thread per question otherwise discussions become disjointed