Skip to content
Browse files

Update lib/elasticsearchclient/calls/core.js

  • Loading branch information...
1 parent 6987993 commit 325696193e8a90c4afdb0952ba68b542fd807de3 @phillro committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/elasticsearchclient/calls/core.js
View
4 lib/elasticsearchclient/calls/core.js
@@ -101,8 +101,8 @@ ElasticSearchClient.prototype.count = function(indexName, typeName, query, optio
var path = '/' + indexName + '/' + typeName + '/_count';
switch(typeof query){
- case 'string':
- var qs = '?q='+query;
+ case 'string':
+ var qs = '?q=' + querystring.stringify(query);
if (options) {
qs +='&'+ querystring.stringify(options)
}

0 comments on commit 3256961

Please sign in to comment.
Something went wrong with that request. Please try again.