Module
DateHistogramAggregation
DateHistogramAggregation ( name )
Aggregation similar to the histogram except it can only be applied on date values.
|
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 | extendedBounds(min,max) | Set's the range/bounds for the histogram aggregation. Useful when you want to include buckets that might be outside the bounds of indexed documents. |
Object | format(f) | Sets the format expression for the terms. Use for number or date formatting |
Object | interval(i) | Sets the histogram interval. Buckets are generated based on this interval value. |
Object | keyed(trueFalse) | Enable the response to be returned as a keyed object where the key is the bucket interval. |
Object | minDocCount(num) | Only return terms that match more than a configured number of hits. |
Object | order(order,direction) | Sets order for the aggregated values. |
Object | postOffset(offset) | Set the post-rouding offset. |
Object | postZone(tz) | Set the post-rouding date time zone. |
Object | preOffset(offset) | Set the pre-rouding offset. |
Object | preZone(tz) | Set the pre-rouding date time zone. |
Object | preZoneAdjustLargeInterval(trueFalse) | Set to true to apply interval adjusts to day and above intervals. |
Object | timeZone(tz) | Set the date time zone. |
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.
|
extendedBounds
Object extendedBounds ( min, max )
Set's the range/bounds for the histogram aggregation. Useful when you
want to include buckets that might be outside the bounds of indexed
documents.
|
format
Object format ( f )
Sets the format expression for the terms. Use for number or date
formatting
|
interval
Object interval ( i )
Sets the histogram interval. Buckets are generated based on this interval
value.
|
keyed
Object keyed ( trueFalse )
Enable the response to be returned as a keyed object where the key is the
bucket interval.
|
minDocCount
Object minDocCount ( num )
Only return terms that match more than a configured number of hits.
|
order
Object order ( order, direction )
Sets order for the aggregated values.
|
postOffset
Object postOffset ( offset )
Set the post-rouding offset.
|
postZone
Object postZone ( tz )
Set the post-rouding date time zone.
|
preOffset
Object preOffset ( offset )
Set the pre-rouding offset.
|
preZone
Object preZone ( tz )
Set the pre-rouding date time zone.
|
preZoneAdjustLargeInterval
Object preZoneAdjustLargeInterval ( trueFalse )
Set to true to apply interval adjusts to day and above intervals.
|
timeZone
Object timeZone ( tz )
Set the date time zone.
|
toJSON
String toJSON ( )
Retrieves the internal
|