diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java index 7c750c18a..a2e88b47e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java @@ -28,7 +28,6 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.Long; import java.lang.String; import java.util.Map; import java.util.Objects; @@ -62,15 +61,12 @@ public class TimeSeriesBucket extends MultiBucketBase { private final Map key; - private final long docCount; - // --------------------------------------------------------------------------------------------- private TimeSeriesBucket(Builder builder) { super(builder); this.key = ApiTypeHelper.unmodifiableRequired(builder.key, this, "key"); - this.docCount = ApiTypeHelper.requireNonNull(builder.docCount, this, "docCount"); } @@ -85,13 +81,6 @@ public final Map key() { return this.key; } - /** - * Required - API name: {@code doc_count} - */ - public final long docCount() { - return this.docCount; - } - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { super.serializeInternal(generator, mapper); @@ -106,8 +95,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - generator.writeKey("doc_count"); - generator.write(this.docCount); } @@ -122,8 +109,6 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private Map key; - private Long docCount; - /** * Required - API name: {@code key} *

@@ -153,14 +138,6 @@ public final Builder key(String key, Function op) { MultiBucketBase.setupMultiBucketBaseDeserializer(op); op.add(Builder::key, JsonpDeserializer.stringMapDeserializer(FieldValue._DESERIALIZER), "key"); - op.add(Builder::docCount, JsonpDeserializer.longDeserializer(), "doc_count"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index f64014d38..600037dd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -378,7 +378,7 @@ '_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L55-L55', '_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L78-L78', '_types.aggregations.AvgAggregate': '_types/aggregations/Aggregate.ts#L210-L211', -'_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L722-L738', +'_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L721-L737', '_types.aggregations.BoxplotAggregation': '_types/aggregations/metric.ts#L57-L62', '_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L53-L58', '_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L129-L135', @@ -400,7 +400,7 @@ '_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L1062-L1126', '_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1128-L1131', '_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L742-L751', -'_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L792-L793', +'_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L791-L792', '_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L118-L123', '_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L623-L628', '_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L127-L143', @@ -411,7 +411,7 @@ '_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L191-L194', '_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L177-L179', '_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L175-L175', -'_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L763-L771', +'_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L762-L770', '_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L192-L192', '_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L194-L194', '_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1133-L1137', @@ -456,7 +456,7 @@ '_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L515-L517', '_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L527-L528', '_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L530-L532', -'_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L800-L807', +'_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L799-L806', '_types.aggregations.GeoLineAggregation': '_types/aggregations/metric.ts#L121-L146', '_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L155-L160', '_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L148-L153', @@ -478,12 +478,12 @@ '_types.aggregations.HoltWintersModelSettings': '_types/aggregations/pipeline.ts#L275-L282', '_types.aggregations.HoltWintersMovingAverageAggregation': '_types/aggregations/pipeline.ts#L262-L265', '_types.aggregations.HoltWintersType': '_types/aggregations/pipeline.ts#L283-L286', -'_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L672-L686', +'_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L671-L685', '_types.aggregations.InferenceAggregation': '_types/aggregations/pipeline.ts#L205-L214', -'_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L700-L703', +'_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L699-L702', '_types.aggregations.InferenceConfigContainer': '_types/aggregations/pipeline.ts#L216-L222', -'_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L694-L698', -'_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L688-L692', +'_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L693-L697', +'_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L687-L691', '_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L634-L635', '_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L1139-L1168', '_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L637-L642', @@ -497,9 +497,9 @@ '_types.aggregations.LongTermsAggregate': '_types/aggregations/Aggregate.ts#L402-L407', '_types.aggregations.LongTermsBucket': '_types/aggregations/Aggregate.ts#L409-L412', '_types.aggregations.MatrixAggregation': '_types/aggregations/matrix.ts#L26-L36', -'_types.aggregations.MatrixStatsAggregate': '_types/aggregations/Aggregate.ts#L773-L777', +'_types.aggregations.MatrixStatsAggregate': '_types/aggregations/Aggregate.ts#L772-L776', '_types.aggregations.MatrixStatsAggregation': '_types/aggregations/matrix.ts#L38-L44', -'_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L779-L788', +'_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L778-L787', '_types.aggregations.MaxAggregate': '_types/aggregations/Aggregate.ts#L201-L202', '_types.aggregations.MaxAggregation': '_types/aggregations/metric.ts#L162-L162', '_types.aggregations.MaxBucketAggregation': '_types/aggregations/pipeline.ts#L224-L224', @@ -528,7 +528,7 @@ '_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L643-L648', '_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L319-L324', '_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L326-L352', -'_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L795-L796', +'_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L794-L795', '_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L650-L655', '_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L771-L771', '_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L174-L193', @@ -542,7 +542,7 @@ '_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L657-L677', '_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L539-L546', '_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L694-L724', -'_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L757-L761', +'_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L756-L760', '_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L230-L241', '_types.aggregations.RateMode': '_types/aggregations/metric.ts#L243-L252', '_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L494-L495', @@ -551,7 +551,7 @@ '_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L734-L740', '_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L350-L363', '_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L773-L775', -'_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L662-L665', +'_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L661-L664', '_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L254-L280', '_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L361-L367', '_types.aggregations.SignificantLongTermsAggregate': '_types/aggregations/Aggregate.ts#L593-L595', @@ -574,7 +574,7 @@ '_types.aggregations.StatsBucketAggregation': '_types/aggregations/pipeline.ts#L369-L369', '_types.aggregations.StringRareTermsAggregate': '_types/aggregations/Aggregate.ts#L446-L450', '_types.aggregations.StringRareTermsBucket': '_types/aggregations/Aggregate.ts#L452-L454', -'_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L709-L720', +'_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L708-L719', '_types.aggregations.StringStatsAggregation': '_types/aggregations/metric.ts#L284-L290', '_types.aggregations.StringTermsAggregate': '_types/aggregations/Aggregate.ts#L387-L392', '_types.aggregations.StringTermsBucket': '_types/aggregations/Aggregate.ts#L398-L400', @@ -584,7 +584,7 @@ '_types.aggregations.TDigest': '_types/aggregations/metric.ts#L223-L228', '_types.aggregations.TDigestPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L176-L177', '_types.aggregations.TDigestPercentilesAggregate': '_types/aggregations/Aggregate.ts#L173-L174', -'_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L751-L755', +'_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L750-L754', '_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L294-L308', '_types.aggregations.TTestType': '_types/aggregations/metric.ts#L322-L335', '_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L380-L385', @@ -598,11 +598,11 @@ '_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L310-L320', '_types.aggregations.TimeSeriesAggregate': '_types/aggregations/Aggregate.ts#L652-L653', '_types.aggregations.TimeSeriesAggregation': '_types/aggregations/bucket.ts#L984-L994', -'_types.aggregations.TimeSeriesBucket': '_types/aggregations/Aggregate.ts#L655-L658', -'_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L667-L670', +'_types.aggregations.TimeSeriesBucket': '_types/aggregations/Aggregate.ts#L655-L657', +'_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L666-L669', '_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L337-L397', -'_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L745-L749', -'_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L740-L743', +'_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L744-L748', +'_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L739-L742', '_types.aggregations.TopMetricsAggregation': '_types/aggregations/metric.ts#L399-L413', '_types.aggregations.TopMetricsValue': '_types/aggregations/metric.ts#L415-L420', '_types.aggregations.UnmappedRareTermsAggregate': '_types/aggregations/Aggregate.ts#L456-L462', @@ -2904,10 +2904,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/39ba8e8550e75ed515c0fd76803738df3b8aafcb/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/34639bac3e3b799e55b45e3a59577fb54c63ee0b/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification.