Search Results for

    Show / Hide Table of Contents

    Class DateHistogramAggregation

    Inheritance
    object
    AggregationBase
    BucketAggregationBase
    DateHistogramAggregation
    Implements
    IDateHistogramAggregation
    IBucketAggregation
    IAggregation
    Inherited Members
    BucketAggregationBase.Aggregations
    AggregationBase.Meta
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class DateHistogramAggregation : BucketAggregationBase, IDateHistogramAggregation, IBucketAggregation, IAggregation

    Constructors

    | Edit this page View Source

    DateHistogramAggregation(string)

    Declaration
    public DateHistogramAggregation(string name)
    Parameters
    Type Name Description
    string name

    Properties

    | Edit this page View Source

    CalendarInterval

    The calendar interval to use when bucketing documents

    Declaration
    public Union<DateInterval?, DateMathTime> CalendarInterval { get; set; }
    Property Value
    Type Description
    Union<DateInterval?, DateMathTime>
    | Edit this page View Source

    ExtendedBounds

    Extend the bounds of the date histogram beyond the data itself, forcing the aggregation to start building buckets on a specific min and/or max value. Using extended bounds only makes sense when MinimumDocumentCount is 0 as empty buckets will never be returned if it is greater than 0.

    Declaration
    public ExtendedBounds<DateMath> ExtendedBounds { get; set; }
    Property Value
    Type Description
    ExtendedBounds<DateMath>
    | Edit this page View Source

    Field

    The field to target

    Declaration
    public Field Field { get; set; }
    Property Value
    Type Description
    Field
    | Edit this page View Source

    FixedInterval

    The fixed interval to use when bucketing documents

    Declaration
    public Time FixedInterval { get; set; }
    Property Value
    Type Description
    Time
    | Edit this page View Source

    Format

    Return a formatted date string as the key instead an epoch long

    Declaration
    public string Format { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    HardBounds

    The hard_bounds is a counterpart of extended_bounds and can limit the range of buckets in the histogram. It is particularly useful in the case of open data ranges that can result in a very large number of buckets.

    Declaration
    public HardBounds<DateMath> HardBounds { get; set; }
    Property Value
    Type Description
    HardBounds<DateMath>
    | Edit this page View Source

    MinimumDocumentCount

    The minimum number of documents that a bucket must contain to be returned in the response. The default is 0 meaning that buckets with no documents will be returned.

    Declaration
    public int? MinimumDocumentCount { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Missing

    Defines how to treat documents that are missing a value. By default, they are ignored, but it is also possible to treat them as if they have a value.

    Declaration
    public DateTime? Missing { get; set; }
    Property Value
    Type Description
    DateTime?
    | Edit this page View Source

    Offset

    Change the start value of each bucket by the specified positive (+) or negative offset (-) duration, such as 1h for an hour, or 1d for a day.

    Declaration
    public string Offset { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Order

    Defines an order in which returned buckets are sorted. By default the returned buckets are sorted by their key ascending.

    Declaration
    public HistogramOrder Order { get; set; }
    Property Value
    Type Description
    HistogramOrder
    | Edit this page View Source

    Script

    A script to execute to provide custom computation

    Declaration
    public IScript Script { get; set; }
    Property Value
    Type Description
    IScript
    | Edit this page View Source

    TimeZone

    Used to indicate that bucketing should use a different time zone. Time zones may either be specified as an ISO 8601 UTC offset (e.g. +01:00 or -08:00) or as a timezone id, an identifier used in the TZ database like America/Los_Angeles.

    Declaration
    public string TimeZone { get; set; }
    Property Value
    Type Description
    string

    Implements

    IDateHistogramAggregation
    IBucketAggregation
    IAggregation

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • DateHistogramAggregation(string)
    • Properties
      • CalendarInterval
      • ExtendedBounds
      • Field
      • FixedInterval
      • Format
      • HardBounds
      • MinimumDocumentCount
      • Missing
      • Offset
      • Order
      • Script
      • TimeZone
    • Implements
    • Extension Methods
    Back to top Generated by DocFX