diff --git a/src/Meilisearch/IndexStats.cs b/src/Meilisearch/IndexStats.cs index 6136801b..84727f4e 100644 --- a/src/Meilisearch/IndexStats.cs +++ b/src/Meilisearch/IndexStats.cs @@ -8,11 +8,15 @@ namespace Meilisearch /// public class IndexStats { - public IndexStats(int numberOfDocuments, bool isIndexing, IReadOnlyDictionary fieldDistribution) + public IndexStats(int numberOfDocuments, bool isIndexing, IReadOnlyDictionary fieldDistribution, long rawDocumentDbSize, long avgDocumentSize, int numberOfEmbeddedDocuments, int numberOfEmbeddings) { NumberOfDocuments = numberOfDocuments; IsIndexing = isIndexing; FieldDistribution = fieldDistribution; + RawDocumentDbSize = rawDocumentDbSize; + AvgDocumentSize = avgDocumentSize; + NumberOfEmbeddedDocuments = numberOfEmbeddedDocuments; + NumberOfEmbeddings = numberOfEmbeddings; } /// @@ -32,5 +36,30 @@ public IndexStats(int numberOfDocuments, bool isIndexing, IReadOnlyDictionary [JsonPropertyName("fieldDistribution")] public IReadOnlyDictionary FieldDistribution { get; } + + /// + /// Get the total size of the documents stored in Meilisearch + /// + [JsonPropertyName("rawDocumentDbSize")] + public long RawDocumentDbSize { get; } + + /// + /// Get the total size of the documents stored in Meilisearch divided by the number of documents + /// + [JsonPropertyName("avgDocumentSize")] + public long AvgDocumentSize { get; } + + /// + /// Get the number of document in index that contains at least one embedded representation + /// + [JsonPropertyName("numberOfEmbeddedDocuments")] + public int NumberOfEmbeddedDocuments { get; } + + + /// + /// Get the total number of embeddings representation that exists in that indexes + /// + [JsonPropertyName("numberOfEmbeddings")] + public int NumberOfEmbeddings { get; } } }