Skip to content

Commit 2356791

Browse files
committed
Skip Rare terms aggregation for < 7.3.0
1 parent 92c12b7 commit 2356791

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Tests/Tests/Aggregations/Bucket/RareTerms/RareTermsAggregationUsageTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using Elastic.Xunit.XunitPlumbing;
34
using FluentAssertions;
45
using Nest;
56
using Tests.Core.Extensions;
@@ -13,10 +14,13 @@ namespace Tests.Aggregations.Bucket.RareTerms
1314
* A multi-bucket value source based aggregation which finds "rare" terms — terms that are at the long-tail of the
1415
* distribution and are not frequent. Conceptually, this is like a terms aggregation that is sorted by _count ascending.
1516
* As noted in the terms aggregation docs, actually ordering a terms agg by count ascending has unbounded error.
16-
* Instead, you should use the rare_terms aggregation
17+
* Instead, you should use the rare_terms aggregation.
18+
*
19+
* NOTE: Valid only in Elasticsearch 7.3.0+
1720
*
1821
* See the Elasticsearch documentation on {ref_current}/search-aggregations-bucket-rare-terms-aggregation.html[rare terms aggregation] for more detail.
1922
*/
23+
[SkipVersion("<7.3.0", "Introduced in 7.3.0")]
2024
public class RareTermsAggregationUsageTests : AggregationUsageTestBase
2125
{
2226
public RareTermsAggregationUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(i, usage) { }

0 commit comments

Comments
 (0)