 
					
				
		
11-22-2021 12:31 AM
I am trying to fetch the sum of all files size uploaded by the individual users of alfresco. I have used CMIS API
http://localhost:8080/alfresco/api/-default-/public/search/versions/1/search is a post request and the body is
11-22-2021 03:05 AM
You may try using the stats REST API:
http://127.0.0.1:8080/alfresco/s/api/solrstats
{
    "resultset": [
    ],
    "queryInfo": {
      "numberFound": "190"
      ,"totalRows": "0"
         ,"sum": "14794650"
         ,"max": "3737049"
         ,"mean": "81738"
    },
    "metadata": [
        {
            "colIndex": 0,
            "colType": "String",
            "colName": "name"
        },
        {
            "colIndex": 1,
            "colType": "Numeric",
            "colName": "sum"
        },
        {
            "colIndex": 2,
            "colType": "Numeric",
            "colName": "count"
        },
        {
            "colIndex": 3,
            "colType": "Numeric",
            "colName": "min"
        },
        {
            "colIndex": 4,
            "colType": "Numeric",
            "colName": "max"
        },
        {
            "colIndex": 5,
            "colType": "Numeric",
            "colName": "mean"
        }
    ]
}
If that is not enough, you need to use directly SOLR for the query, since CMIS doesn't support that feature.
 
					
				
		
11-22-2021 05:53 AM
Can you tell me what do those fields indicate? numberFound,sum,max,mean what do they represent.Also the metadata has some fields.What does they indicate?
11-23-2021 03:28 AM
Hope this helps:
https://angelborroy.wordpress.com/2017/07/18/extrating-simple-stats-from-alfresco-5/
"metadata" is used as a legend for "resultset" when using the "facet" parameter in the URL
 
					
				
				
			
		
Explore our Alfresco products with the links below. Use labels to filter content by product module.