@@ -299,7 +299,7 @@ impl<Http: HttpClient> Index<Http> {
299299 /// }
300300 /// # tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(async {
301301 /// # let client = Client::new(MEILISEARCH_URL, Some(MEILISEARCH_API_KEY)).unwrap();
302- /// let movies = client.index("execute_query ");
302+ /// let movies = client.index("execute_query2 ");
303303 ///
304304 /// // add some documents
305305 /// # movies.add_or_replace(&[Movie{name:String::from("Interstellar"), genre:String::from("scifi")},Movie{name:String::from("Inception"), genre:String::from("drama")}], Some("name")).await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
@@ -1846,8 +1846,25 @@ impl<'a, Http: HttpClient> AsRef<IndexUpdater<'a, Http>> for IndexUpdater<'a, Ht
18461846#[ derive( Debug , Clone , Deserialize ) ]
18471847#[ serde( rename_all = "camelCase" ) ]
18481848pub struct IndexStats {
1849+ /// Total number of documents in an index
18491850 pub number_of_documents : usize ,
1851+
1852+ /// Total number of documents with at least one embedding
1853+ pub number_of_embedded_documents : usize ,
1854+
1855+ /// Total number of embeddings in an index
1856+ pub number_of_embeddings : usize ,
1857+
1858+ /// Storage space claimed by all documents in the index in bytes
1859+ pub raw_document_db_size : usize ,
1860+
1861+ /// Total size of the documents stored in an index divided by the number of documents in that same index
1862+ pub avg_document_size : usize ,
1863+
1864+ /// If `true`, the index is still processing documents and attempts to search will yield impredictable results
18501865 pub is_indexing : bool ,
1866+
1867+ /// Shows every field in the index along with the total number of documents containing that field in said index
18511868 pub field_distribution : HashMap < String , usize > ,
18521869}
18531870
0 commit comments