elastic-particles
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -17,7 +17,7 @@ 'use strict'; | ||
BoolFilter.prototype.mustEqualTerm = function filterMustEqual(field, value) { | ||
BoolFilter.prototype.mustEqualTerm = function filterMustEqual(field, value, doNotNest) { | ||
if (value === undefined || value === null) return this; | ||
if (!this.bool.must) this.bool.must = []; | ||
this.bool.must.push(new TermFilter(field, value)); | ||
this.bool.must.push(new TermFilter(field, value, doNotNest)); | ||
@@ -27,7 +27,7 @@ return this; | ||
BoolFilter.prototype.mustNotEqualTerm = function filterMustNotEqual(field, value) { | ||
BoolFilter.prototype.mustNotEqualTerm = function filterMustNotEqual(field, value, doNotNest) { | ||
if (value === undefined || value === null) return this; | ||
if (!this.bool.must_not) this.bool.must_not = []; | ||
this.bool.must_not.push(new TermFilter(field, value)); | ||
this.bool.must_not.push(new TermFilter(field, value, doNotNest)); | ||
@@ -55,7 +55,7 @@ return this; | ||
BoolFilter.prototype.shouldEqual = function shouldEqual(field, value) { | ||
BoolFilter.prototype.shouldEqual = function shouldEqual(field, value, doNotNest) { | ||
if (value === undefined || value === null) return this; | ||
if (!this.bool.should) this.bool.should = []; | ||
this.bool.should.push(new TermFilter(field, value)); | ||
this.bool.should.push(new TermFilter(field, value, doNotNest)); | ||
@@ -72,2 +72,2 @@ return this; | ||
return this; | ||
}; | ||
}; |
{ | ||
"name": "elastic-particles", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "Building blocks for Elastic queries, filters, and aggregations which can be re-used, combed, and nested.", | ||
@@ -5,0 +5,0 @@ "author": { |
38209
999