elastic-particles
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -33,2 +33,3 @@ 'use strict'; | ||
ElasticQuery.prototype.setFilter = function setFilter(filter) { | ||
if (filter === null || filter === undefined) { return this; } | ||
//structure the filter so that it can be easily merged with the query. | ||
@@ -58,2 +59,4 @@ this._filter = {'bool': {'filter': filter}}; | ||
ElasticQuery.prototype.setIncludeFields = function setIncludeFields(includes) { | ||
if (includes === null || includes === undefined) { return this; } | ||
if (!this._source) { | ||
@@ -75,2 +78,4 @@ this._source = {}; | ||
ElasticQuery.prototype.setExcludeFields = function setExcludeFields(excludes) { | ||
if (excludes === null || excludes === undefined) { return this; } | ||
if (!this._source) { | ||
@@ -90,2 +95,3 @@ this._source = {}; | ||
ElasticQuery.prototype.addAggregation = function addAggregation(aggObject, aggName) { | ||
if (aggObject === null || aggObject === undefined) { return this; } | ||
@@ -92,0 +98,0 @@ aggName = aggName || aggObject.getName(); |
{ | ||
"name": "elastic-particles", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Building blocks for Elastic queries, filters, and aggregations which can be re-used, combed, and nested.", | ||
@@ -5,0 +5,0 @@ "author": { |
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
38142
998