Skip to content

Commit

Permalink
fixed #49
Browse files Browse the repository at this point in the history
  • Loading branch information
phillro committed Feb 10, 2013
1 parent 3423120 commit b4c6751
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -18,9 +18,12 @@ ElasticSearchClient = require('elasticsearchclient');
var serverOptions = {
host: 'localhost',
port: 9200,
pathPrefix:'optional pathPrefix',
secure: true||false
};
```


OR specify multiple hosts

```javascript
Expand Down Expand Up @@ -52,7 +55,7 @@ elasticSearchClient.search('my_index_name', 'my_type_name', qryObj)
})
.exec()

elasticSearchClient.index('my_index_name', 'my_type_name', /* _id (optional) */'1111', {'name':'name'})
elasticSearchClient.index(indexName, typeName, document, id, options)
.on('data', function(data) {
console.log(data)
})
Expand Down

0 comments on commit b4c6751

Please sign in to comment.