Search code examples
vespa

Total count of particular document in vespa


I have multiple documents in vespa and I want to get total count of documents of particular type of document.How can I get this? Is there any way to get this?


Solution

  • Query for the document type with /search/?yql=select * from sources * where sddocname contains "<yourdoctype>"; and look at 'totalCount' in the result.