Comparing version 1.1.2 to 2.0.0
@@ -0,1 +1,26 @@ | ||
## 2.0.0 (2014-04-15) | ||
- Fix fields query (https://github.com/elastic/elasticsearch/issues/4888) | ||
- Dropped support for Elasticsearch 0.90 because of the fields fix | ||
## 1.1.2 (2014-04-14) | ||
- Fix: Count query should not be allowed to have a sort param | ||
## 1.1.1 (2014-04-07) | ||
- Added search keywords in package.json | ||
## 1.1.0 (2014-04-07) | ||
- Fix fields filtering with only arguments | ||
## 1.0.0 (2014-04-07) | ||
- Updated elasticsearch.js to latest version | ||
## 0.2.0 (2014-04-07) | ||
- Replaced isarray by npm module | ||
- Added count method for a query | ||
## 0.1.2 (2014-01-29) | ||
@@ -2,0 +27,0 @@ |
@@ -304,3 +304,3 @@ var elasticsearch = require('elasticsearch'); | ||
if (Object.keys(options.facets).length) query.facets = options.facets; | ||
if (options.fields.length) query.fields = options.fields; | ||
if (options.fields.length) query._source = options.fields; | ||
if (options.sort.length && opts.output === 'search') body.sort = options.sort; | ||
@@ -307,0 +307,0 @@ if (options.size) query.size = options.size; |
{ | ||
"name": "elasto", | ||
"version": "1.1.2", | ||
"version": "2.0.0", | ||
"description": "ElasticSearch client", | ||
@@ -28,3 +28,4 @@ "main": "index", | ||
"should": "^4.0.1" | ||
} | ||
}, | ||
"license": "MIT" | ||
} |
@@ -8,2 +8,3 @@ # Elasto [![Circle CI](https://circleci.com/gh/StreetHub/elasto.svg?style=svg)](https://circleci.com/gh/StreetHub/elasto) | ||
- [Installation](#installation) | ||
- [Support](#support) | ||
- [Getting started](#getting-started) | ||
@@ -21,2 +22,6 @@ - [Example](#example) | ||
## Support | ||
If you want to use this package with Elasticsearch 0.90, you should use `1.1.2`. The versions `>=2.X.X` will only support Elasticsearch `1.X.X`. | ||
## Getting started | ||
@@ -23,0 +28,0 @@ |
@@ -273,6 +273,6 @@ 'use strict'; | ||
.then(function(res) { | ||
var docs = _.pluck(res.hits.hits, 'fields'); | ||
var docs = _.pluck(res.hits.hits, '_source'); | ||
docs.forEach(function(doc){ | ||
_.keys(doc).length.should.equal(2); | ||
}) | ||
}); | ||
}) | ||
@@ -291,3 +291,3 @@ .should.eventually.notify(done); | ||
.then(function(res) { | ||
var docs = _.pluck(res.hits.hits, 'fields'); | ||
var docs = _.pluck(res.hits.hits, '_source'); | ||
docs.forEach(function(doc){ | ||
@@ -294,0 +294,0 @@ _.keys(doc).length.should.equal(2); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27377
281