File tree 3 files changed +20
-3
lines changed
Tests/Nest.Tests.Unit/ObjectInitializer/Search
3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System . Runtime . Serialization ;
2
2
using Newtonsoft . Json ;
3
3
using Newtonsoft . Json . Converters ;
4
+ using System ;
4
5
5
6
namespace Nest
6
7
{
@@ -18,7 +19,23 @@ public enum TermsAggregationExecutionHint
18
19
/// <summary>
19
20
/// Order by using ordinals of the field values instead of the values themselves
20
21
/// </summary>
22
+ [ Obsolete ( "ordinals was removed from ES in version 1.3. Use global_ordinals instead." ) ]
21
23
[ EnumMember ( Value = "ordinals" ) ]
22
- Ordinals
24
+ Ordinals ,
25
+ /// <summary>
26
+ /// Order by using ordinals of the field and preemptively allocating one bucket per ordinal value
27
+ /// </summary>
28
+ [ EnumMember ( Value = "global_ordinals" ) ]
29
+ GlobalOrdinals ,
30
+ /// <summary>
31
+ /// Order by using ordinals of the field and dynamically allocating one bucket per ordinal value
32
+ /// </summary>
33
+ [ EnumMember ( Value = "global_ordinals_hash" ) ]
34
+ GlobalOrdinalsHash ,
35
+ /// <summary>
36
+ /// Order by using per-segment ordinals to compute counts and remap these counts to global counts using global ordinals
37
+ /// </summary>
38
+ [ EnumMember ( Value = "global_ordinals_low_cardinality" ) ]
39
+ GlobalOrdinalsLowCardinality
23
40
}
24
41
}
Original file line number Diff line number Diff line change 70
70
"terms" : {
71
71
"field" : " name" ,
72
72
"size" : 10 ,
73
- "execution_hint" : " ordinals "
73
+ "execution_hint" : " global_ordinals "
74
74
},
75
75
"aggs" : {
76
76
"max_count" : {
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public SearchRequestTests()
121
121
{
122
122
Field = Property . Path < ElasticsearchProject > ( p=> p . Name ) ,
123
123
Size = 10 ,
124
- ExecutionHint = TermsAggregationExecutionHint . Ordinals ,
124
+ ExecutionHint = TermsAggregationExecutionHint . GlobalOrdinals ,
125
125
} ,
126
126
Aggregations = new Dictionary < string , IAggregationContainer >
127
127
{
You can’t perform that action at this time.
0 commit comments