ncb000gt / node-es

NodeJS module for ElasticSearch.
103 stars 81 forks source link

usage info is wrong #11

Closed vladp closed 11 years ago

vladp commented 11 years ago

The current info says " var elasticsearch = require('elasticsearch'); var es = elasticsearch({index: 'kitteh'}); " first the name is 'node-elastisearch' but even after that, the last line has still an error says elasticsearch is not a function

gsf commented 11 years ago

The name of this module in npm is "elasticsearch". You'll want to npm install elasticsearch or include it in the dependencies of package.json for your project before using it. See http://nodejs.org/api/modules.html.