Skip to content

Commit

Permalink
Add query example for totalCount
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Aune committed Sep 25, 2023
1 parent 9492897 commit 223d6e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion en/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ be searched using the query api, but can be used by [visiting](visiting.html).
There are multiple things that can cause this, see [visiting troubleshooting](visiting.html#troubleshooting).

#### How to find number of documents in the index?
Use metrics or `vespa visit` - see [examples](/en/operations/batch-delete.html#example).
Run a query like `vespa query "select * from sources * where true"` and see the `totalCount` field.
Alternatively, use metrics or `vespa visit` - see [examples](/en/operations/batch-delete.html#example).



Expand Down

0 comments on commit 223d6e0

Please sign in to comment.