elastic-particles
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -18,4 +18,4 @@ 'use strict'; | ||
if (!scripts.init_script) { | ||
throw new Error('Scripted metric aggregation requires an "init_script"'); | ||
if (!scripts.map_script) { | ||
throw new Error('Scripted metric aggregation requires an "map_script"'); | ||
} | ||
@@ -25,15 +25,7 @@ | ||
this._root.init_script = scripts.init_script; | ||
if (scripts.map_script) { | ||
this._root.map_script = scripts.map_script; | ||
for (var key in scripts) { | ||
if (scripts.hasOwnProperty(key)) { | ||
this._root[key] = scripts[key]; | ||
} | ||
} | ||
if (scripts.combine_script) { | ||
this._root.combine_script = scripts.combine_script; | ||
} | ||
if (scripts.reduce_script) { | ||
this._root.reduce_script = scripts.reduce_script; | ||
} | ||
} | ||
@@ -40,0 +32,0 @@ |
{ | ||
"name": "elastic-particles", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Building blocks for Elastic queries, filters, and aggregations which can be re-used, combed, and nested.", | ||
@@ -5,0 +5,0 @@ "author": { |
# Elastic Particles | ||
##Building blocks for Elastic queries, filters, and aggregations which can be re-used, combined, and nested. | ||
##Building blocks for Elastic queries, filters, and aggregations which can be re-used, combined, and nested. In other words, it's an elasticsearch query builder. | ||
###documentation: http://jharri34.github.io/elastic-particles/ | ||
@@ -4,0 +4,0 @@ |
39676
971