mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Changes Document::len to Document::top_level_fields_count
This commit is contained in:
parent
4ed195426c
commit
32bcacefd5
2 changed files with 24 additions and 13 deletions
|
@ -160,7 +160,7 @@ impl<'doc, D: DocumentTrait<'doc> + Debug> ObjectView for ParseableDocument<'doc
|
|||
}
|
||||
|
||||
fn size(&self) -> i64 {
|
||||
self.document.len() as i64
|
||||
self.document.top_level_fields_count() as i64
|
||||
}
|
||||
|
||||
fn keys<'k>(&'k self) -> Box<dyn Iterator<Item = KStringCow<'k>> + 'k> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue