Module
RangeAggregation
        RangeAggregation ( name )
    
    Aggregation that enables the user to define a set of ranges that each represent a bucket. 
  | 
Method Summary
| Returns | Name | Description | 
|---|---|---|
String | _type() | The type of ejs object. For internal use only. | 
Object | agg(agg) | Add a nesated aggregation. This method can be called multiple times in order to set multiple nested aggregations what will be executed at the same time as the parent aggregation. Alias for the aggregation method. | 
Object | aggregation(agg) | Add a nesated aggregation. This method can be called multiple times in order to set multiple nested aggregations what will be executed at the same time as the parent aggregation. | 
Object | field(field) | Sets the field to operate on.  | 
    
Object | keyed(trueFalse) | Enable the response to be returned as a keyed object where the key is the bucket interval. | 
Object | lang(language) | The script language being used. | 
Object | params(p) | Sets parameters that will be applied to the script. Overwrites any existing params. | 
Object | range(from,to,key) | Adds a range to the list of exsiting range expressions. | 
Object | script(scriptCode) | Allows you generate or modify the terms/values using a script. | 
Object | scriptFile(scriptFile) | Allows you generate or modify the terms/values using a script. | 
Object | scriptId(scriptId) | Allows you generate or modify the terms/values using a script. | 
String | toJSON() | Retrieves the internal   | 
    
Method Detail
agg
        Object agg ( agg )
    
    Add a nesated aggregation.  This method can be called multiple times
      in order to set multiple nested aggregations what will be executed
      at the same time as the parent aggregation.  Alias for the
      aggregation method. 
  | 
aggregation
        Object aggregation ( agg )
    
    Add a nesated aggregation.  This method can be called multiple times
      in order to set multiple nested aggregations what will be executed
      at the same time as the parent aggregation. 
  | 
field
        Object field ( field )
    
    Sets the field to operate on. 
  | 
keyed
        Object keyed ( trueFalse )
    
    Enable the response to be returned as a keyed object where the key is the
      bucket interval. 
  | 
lang
        Object lang ( language )
    
    The script language being used. 
  | 
params
        Object params ( p )
    
    Sets parameters that will be applied to the script.  Overwrites
      any existing params. 
  | 
range
        Object range ( from, to, key )
    
    Adds a range to the list of exsiting range expressions. 
  | 
script
        Object script ( scriptCode )
    
    Allows you generate or modify the terms/values using a script. 
  | 
scriptFile
        Object scriptFile ( scriptFile )
    
    Allows you generate or modify the terms/values using a script. 
  | 
scriptId
        Object scriptId ( scriptId )
    
    Allows you generate or modify the terms/values using a script. 
  | 
toJSON
        String toJSON ( )
    
    Retrieves the internal  
  |