elastic-builder
Advanced tools
Comparing version 2.22.0 to 2.23.0
{ | ||
"name": "elastic-builder", | ||
"version": "2.22.0", | ||
"version": "2.23.0", | ||
"description": "A JavaScript implementation of the elasticsearch Query DSL", | ||
@@ -108,4 +108,5 @@ "main": "src/index.js", | ||
"foxstarius <aj.franzon@gmail.com>", | ||
"sandeep952 <sandy335582@gmail.com>" | ||
"sandeep952 <sandy335582@gmail.com>", | ||
"florian-lackner365 <florian.lackner@365talents.com>" | ||
] | ||
} |
@@ -300,4 +300,8 @@ 'use strict'; | ||
/** | ||
* Sets the data type for field generated by script. | ||
* Sets the format of the date when sorting a date field. | ||
* | ||
* [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-date-format.html#built-in-date-formats) | ||
* | ||
* Note: The format argument is [supported since version 7.13](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/release-notes-7.13.0.html) of ElasticSearch. | ||
* | ||
* @param {string} type | ||
@@ -312,2 +316,15 @@ * @returns {Sort} returns `this` so that calls can be chained | ||
/** | ||
* Sets the format of the date when sorting a date field. | ||
* | ||
* [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-date-format.html#built-in-date-formats) | ||
* | ||
* @param {string} fmt | ||
* @returns {Sort} returns `this` so that calls can be chained | ||
*/ | ||
format(fmt) { | ||
this._opts.format = fmt; | ||
return this; | ||
} | ||
/** | ||
* Reverse the sort order. Valid during sort types: field, geo distance, and script. | ||
@@ -314,0 +331,0 @@ * |
Sorry, the diff of this file is too big to display
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
1022781
25669