elastic-builder
Advanced tools
Comparing version 2.12.0 to 2.13.0
@@ -75,2 +75,21 @@ 'use strict'; | ||
/** | ||
* Allow case insensitive matching or not (added in 7.10.0). | ||
* Defaults to false. | ||
* | ||
* @example | ||
* const qry = esb.regexpQuery('name.first', 's.*y') | ||
* .caseInsensitive(true); | ||
* | ||
* @param {boolean} caseInsensitive | ||
* @returns {RegexpQuery} returns `this` so that calls can be chained. | ||
*/ | ||
}, { | ||
key: 'caseInsensitive', | ||
value: function caseInsensitive(_caseInsensitive) { | ||
this._queryOpts.case_insensitive = _caseInsensitive; | ||
return this; | ||
} | ||
/** | ||
* Limit on how many automaton states regexp queries are allowed to create. | ||
@@ -77,0 +96,0 @@ * This protects against too-difficult (e.g. exponentially hard) regexps. |
{ | ||
"name": "elastic-builder", | ||
"version": "2.12.0", | ||
"version": "2.13.0", | ||
"description": "A JavaScript implementation of the elasticsearch Query DSL", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -48,2 +48,18 @@ 'use strict'; | ||
/** | ||
* Allow case insensitive matching or not (added in 7.10.0). | ||
* Defaults to false. | ||
* | ||
* @example | ||
* const qry = esb.regexpQuery('name.first', 's.*y') | ||
* .caseInsensitive(true); | ||
* | ||
* @param {boolean} caseInsensitive | ||
* @returns {RegexpQuery} returns `this` so that calls can be chained. | ||
*/ | ||
caseInsensitive(caseInsensitive) { | ||
this._queryOpts.case_insensitive = caseInsensitive; | ||
return this; | ||
} | ||
/** | ||
* Limit on how many automaton states regexp queries are allowed to create. | ||
@@ -50,0 +66,0 @@ * This protects against too-difficult (e.g. exponentially hard) regexps. |
Sorry, the diff of this file is too big to display
1799546
43324