@@ -8,11 +8,15 @@ namespace Meilisearch
88 /// </summary>
99 public class IndexStats
1010 {
11- public IndexStats ( int numberOfDocuments , bool isIndexing , IReadOnlyDictionary < string , int > fieldDistribution )
11+ public IndexStats ( int numberOfDocuments , bool isIndexing , IReadOnlyDictionary < string , int > fieldDistribution , long rawDocumentDbSize , long avgDocumentSize , int numberOfEmbeddedDocuments , int numberOfEmbeddings )
1212 {
1313 NumberOfDocuments = numberOfDocuments ;
1414 IsIndexing = isIndexing ;
1515 FieldDistribution = fieldDistribution ;
16+ RawDocumentDbSize = rawDocumentDbSize ;
17+ AvgDocumentSize = avgDocumentSize ;
18+ NumberOfEmbeddedDocuments = numberOfEmbeddedDocuments ;
19+ NumberOfEmbeddings = numberOfEmbeddings ;
1620 }
1721
1822 /// <summary>
@@ -32,5 +36,30 @@ public IndexStats(int numberOfDocuments, bool isIndexing, IReadOnlyDictionary<st
3236 /// </summary>
3337 [ JsonPropertyName ( "fieldDistribution" ) ]
3438 public IReadOnlyDictionary < string , int > FieldDistribution { get ; }
39+
40+ /// <summary>
41+ /// Get the total size of the documents stored in Meilisearch
42+ /// </summary>
43+ [ JsonPropertyName ( "rawDocumentDbSize" ) ]
44+ public long RawDocumentDbSize { get ; }
45+
46+ /// <summary>
47+ /// Get the total size of the documents stored in Meilisearch divided by the number of documents
48+ /// </summary>
49+ [ JsonPropertyName ( "avgDocumentSize" ) ]
50+ public long AvgDocumentSize { get ; }
51+
52+ /// <summary>
53+ /// Get the number of document in index that contains at least one embedded representation
54+ /// </summary>
55+ [ JsonPropertyName ( "numberOfEmbeddedDocuments" ) ]
56+ public int NumberOfEmbeddedDocuments { get ; }
57+
58+
59+ /// <summary>
60+ /// Get the total number of embeddings representation that exists in that indexes
61+ /// </summary>
62+ [ JsonPropertyName ( "numberOfEmbeddings" ) ]
63+ public int NumberOfEmbeddings { get ; }
3564 }
3665}
0 commit comments