Count the documents matching a query. :param cond: the condition use
(self, cond: QueryLike)
| 626 | self._next_id = None |
| 627 | |
| 628 | def count(self, cond: QueryLike) -> int: |
| 629 | """ |
| 630 | Count the documents matching a query. |
| 631 | |
| 632 | :param cond: the condition use |
| 633 | """ |
| 634 | |
| 635 | return len(self.search(cond)) |
| 636 | |
| 637 | def clear_cache(self) -> None: |
| 638 | """ |