fullscale / elastic.js

A JavaScript implementation of the elasticsearch Query DSL
http://docs.fullscale.co/elasticjs/
MIT License
654 stars 163 forks source link

How to connect to cluster? #67

Closed tsturzl closed 10 years ago

tsturzl commented 10 years ago

I haven't found any mention in the guide or documentation of how to connect to a cluster. In fact finding how to connect is generally lacking. It should be one of the first mentioned steps in your guide.

babeya commented 10 years ago

There is nothing like connection. Use the official client as you normally do, and when you use search function, fill body attr with the elastic.js request. If you need futher information read official client's documentation. If you need few example you can contact me.

mattweber commented 10 years ago

See http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/quick-start.html. There is no connection in elastic.js anymore. It is now designed to work directly with the official client.