Skip to content

Commit

Permalink
fix no default mapping on get
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Mayfield committed Apr 25, 2011
1 parent bae0c3f commit c4d9cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elasticsearch.js
Expand Up @@ -65,7 +65,7 @@ ElasticSearch.prototype.delete = function(opts, cb) {
ElasticSearch.prototype.get = function(opts, cb) {
var def = {
method: 'GET',
path: '/' + this.index + '/' + opts.type + '/' + opts.id
path: '/' + this.index + '/' + (opts.type || 'doc') + '/' + opts.id
};

utils.request(utils.mapConfig(def, utils.default_config, opts), cb);
Expand Down

0 comments on commit c4d9cbd

Please sign in to comment.