Class RollupSearchRequest.Builder

All Implemented Interfaces:
WithJson<RollupSearchRequest.Builder>, ObjectBuilder<RollupSearchRequest>
Enclosing class:
RollupSearchRequest

@Deprecated public static class RollupSearchRequest.Builder extends RequestBase.AbstractBuilder<RollupSearchRequest.Builder> implements ObjectBuilder<RollupSearchRequest>
Deprecated.
Builder for RollupSearchRequest.
  • Constructor Details

    • Builder

      public Builder()
      Deprecated.
  • Method Details

    • aggregations

      public final RollupSearchRequest.Builder aggregations(Map<String,Aggregation> map)
      Deprecated.
      Specifies aggregations.

      API name: aggregations

      Adds all entries of map to aggregations.

    • aggregations

      public final RollupSearchRequest.Builder aggregations(String key, Aggregation value)
      Deprecated.
      Specifies aggregations.

      API name: aggregations

      Adds an entry to aggregations.

    • aggregations

      public final RollupSearchRequest.Builder aggregations(String key, AggregationVariant value)
      Deprecated.
      Specifies aggregations.

      API name: aggregations

      Adds an entry to aggregations.

    • aggregations

      Deprecated.
      Specifies aggregations.

      API name: aggregations

      Adds an entry to aggregations using a builder lambda.

    • index

      public final RollupSearchRequest.Builder index(List<String> list)
      Deprecated.
      Required - A comma-separated list of data streams and indices used to limit the request. This parameter has the following rules:
      • At least one data stream, index, or wildcard expression must be specified. This target can include a rollup or non-rollup index. For data streams, the stream's backing indices can only serve as non-rollup indices. Omitting the parameter or using _all are not permitted.
      • Multiple non-rollup indices may be specified.
      • Only one rollup index may be specified. If more than one are supplied, an exception occurs.
      • Wildcard expressions (*) may be used. If they match more than one rollup index, an exception occurs. However, you can use an expression to match multiple non-rollup indices or data streams.

      API name: index

      Adds all elements of list to index.

    • index

      public final RollupSearchRequest.Builder index(String value, String... values)
      Deprecated.
      Required - A comma-separated list of data streams and indices used to limit the request. This parameter has the following rules:
      • At least one data stream, index, or wildcard expression must be specified. This target can include a rollup or non-rollup index. For data streams, the stream's backing indices can only serve as non-rollup indices. Omitting the parameter or using _all are not permitted.
      • Multiple non-rollup indices may be specified.
      • Only one rollup index may be specified. If more than one are supplied, an exception occurs.
      • Wildcard expressions (*) may be used. If they match more than one rollup index, an exception occurs. However, you can use an expression to match multiple non-rollup indices or data streams.

      API name: index

      Adds one or more values to index.

    • query

      public final RollupSearchRequest.Builder query(@Nullable Query value)
      Deprecated.
      Specifies a DSL query that is subject to some limitations.

      API name: query

    • query

      Deprecated.
      Specifies a DSL query that is subject to some limitations.

      API name: query

    • query

      public final RollupSearchRequest.Builder query(QueryVariant value)
      Deprecated.
      Specifies a DSL query that is subject to some limitations.

      API name: query

    • size

      public final RollupSearchRequest.Builder size(@Nullable Integer value)
      Deprecated.
      Must be zero if set, as rollups work on pre-aggregated data.

      API name: size

    • self

      protected RollupSearchRequest.Builder self()
      Deprecated.
      Specified by:
      self in class RequestBase.AbstractBuilder<RollupSearchRequest.Builder>
    • build

      public RollupSearchRequest build()
      Deprecated.
      Specified by:
      build in interface ObjectBuilder<RollupSearchRequest>
      Throws:
      NullPointerException - if some of the required fields are null.