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
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.
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?
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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.