File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/Nest/XPack/Info/XPackUsage Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class XPackUsageResponse : ResponseBase
5252 public XPackUsage DataFrame { get ; internal set ; }
5353
5454 [ DataMember ( Name = "flattened" ) ]
55- public XPackUsage Flattened { get ; internal set ; }
55+ public FlattenedUsage Flattened { get ; internal set ; }
5656
5757 [ DataMember ( Name = "data_science" ) ]
5858 public XPackUsage DataScience { get ; internal set ; }
@@ -148,6 +148,15 @@ public class XPackUsage
148148 public bool Enabled { get ; internal set ; }
149149 }
150150
151+ public class FlattenedUsage : XPackUsage
152+ {
153+ /// <summary>
154+ /// Available in Elasticsearch 7.6.0+
155+ /// </summary>
156+ [ DataMember ( Name = "field_count" ) ]
157+ public int ? FieldCount { get ; internal set ; }
158+ }
159+
151160 public class VectorUsage : XPackUsage
152161 {
153162 [ DataMember ( Name = "dense_vector_fields_count" ) ]
Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ [I] public async Task XPackUsageResponse() => await Assert<XPackUsageResponse>(X
117117#pragma warning disable 618
118118 r . DataFrame . Should ( ) . NotBeNull ( ) ;
119119#pragma warning restore 618
120+
121+ if ( TestConfiguration . Instance . InRange ( ">=7.6.0" ) )
122+ r . Flattened . FieldCount . Should ( ) . HaveValue ( ) ;
120123 }
121124
122125 if ( TestConfiguration . Instance . InRange ( ">=7.5.0" ) )
You can’t perform that action at this time.
0 commit comments