Skip to content

Commit e64a10e

Browse files
Update src/indexes.rs
Co-authored-by: Frank Elsinga <frank@elsinga.de>
1 parent 63b91cf commit e64a10e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/indexes.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,12 +1795,19 @@ impl<'a, Http: HttpClient> AsRef<IndexUpdater<'a, Http>> for IndexUpdater<'a, Ht
17951795
#[derive(Debug, Clone, Deserialize)]
17961796
#[serde(rename_all = "camelCase")]
17971797
pub struct IndexStats {
1798+
/// Total number of documents in an index
17981799
pub number_of_documents: usize,
1800+
/// If `true`, the index is still processing documents and attempts to search will result in undefined behavior
17991801
pub is_indexing: bool,
1802+
/// Shows every field in the index along with the total number of documents containing that field in said index
18001803
pub field_distribution: HashMap<String, usize>,
1804+
/// Storage space claimed by all documents in the index in bytes
18011805
pub raw_document_db_size: usize,
1806+
/// Total size of the documents stored in an index divided by the number of documents in that same index
18021807
pub avg_document_size: usize,
1808+
/// Total number of documents with at least one embedding
18031809
pub number_of_embedded_documents: usize,
1810+
/// Total number of embeddings in an index
18041811
pub number_of_embeddings: usize,
18051812
}
18061813

0 commit comments

Comments
 (0)